Skip to content

Commit

Permalink
Fix the mitigation + inspect the data
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju committed Jun 19, 2024
1 parent 1b76a44 commit d1031d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetchLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).`
);
Expand Down

0 comments on commit d1031d1

Please sign in to comment.