Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Log repository owner type explicitly
  • Loading branch information
henrymercer committed Jan 28, 2026
commit 0720e13f0b9bf428e76fec0c3b8af05584ad075f
3 changes: 3 additions & 0 deletions lib/init-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,9 @@ async function loadRepositoryProperties(
// repositories owned by users cannot have repository properties, so we can
// skip the API call entirely in that case.
const repositoryOwnerType = github.context.payload.repository?.owner.type;
Comment thread
mbg marked this conversation as resolved.
logger.debug(
`Repository owner type is '${repositoryOwnerType ?? "unknown"}'.`,
);
if (repositoryOwnerType === "User") {
logger.debug(
"Skipping loading repository properties because the repository is owned by a user and " +
Expand Down
Loading