Log repository owner type explicitly

This commit is contained in:
Henry Mercer
2026-01-28 11:30:35 +00:00
parent 38ba96d2aa
commit 0720e13f0b
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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;
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 " +