diff --git a/src/fetchLabels.ts b/src/fetchLabels.ts index a6338d32..98892189 100644 --- a/src/fetchLabels.ts +++ b/src/fetchLabels.ts @@ -40,7 +40,8 @@ async function getPullNumber(client: any, context: any) { repo: context.repo.repo, }); - if (pullRequests.length !== 1) { + core.info(pullRequests.data) + if (pullRequests.data.length !== 1) { core.warning( `Multiple PRs associated with the current commit sha! Please provide a unique sha (avoid cherry-picking and creating branches off of branches).` );