Skip to content

Commit

Permalink
chore(github): log result when no default branch returned
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 28, 2024
1 parent 2039476 commit d41da2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/modules/platform/github/index.ts
Expand Up @@ -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 (
Expand Down

0 comments on commit d41da2b

Please sign in to comment.