From d41da2ba502c40a31b0a28c50b9a95fd3fd48941 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 28 Feb 2024 05:52:31 +0100 Subject: [PATCH] chore(github): log result when no default branch returned --- lib/modules/platform/github/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/modules/platform/github/index.ts b/lib/modules/platform/github/index.ts index d8eea93985..c34abf4abc 100644 --- a/lib/modules/platform/github/index.ts +++ b/lib/modules/platform/github/index.ts @@ -512,6 +512,10 @@ export async function initRepo({ } // istanbul ignore if if (!repo.defaultBranchRef?.name) { + logger.debug( + { res }, + 'No default branch returned - treating repo as empty', + ); throw new Error(REPOSITORY_EMPTY); } if ( -- GitLab