From 0720e13f0b9bf428e76fec0c3b8af05584ad075f Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 28 Jan 2026 11:30:35 +0000 Subject: [PATCH] Log repository owner type explicitly --- lib/init-action.js | 3 +++ src/init-action.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/init-action.js b/lib/init-action.js index bbc2128f1..b2cfe5f44 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -92454,6 +92454,9 @@ exec ${goBinaryPath} "$@"` } async function loadRepositoryProperties(repositoryNwo, gitHubVersion, features, logger) { const repositoryOwnerType = github2.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 therefore cannot have repository properties." diff --git a/src/init-action.ts b/src/init-action.ts index 5712b9a00..5d459acae 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -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 " +