From 827e1186a24701f6290172dca500adb71181647a Mon Sep 17 00:00:00 2001 From: Amiel Martin Date: Wed, 15 Sep 2021 09:05:10 -0800 Subject: [PATCH] Fix PR branch labeler --- src/labeler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/labeler.ts b/src/labeler.ts index 301f9313..74034f59 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -218,6 +218,7 @@ function checkBranch(glob: string): boolean { const matcher = new Minimatch(glob); const branchName = github.context.ref; core.debug(` checking "branch" pattern against ${branchName}`); + core.debug(` - but we should be checking ${github.context.payload.pull_request.head.ref}`); core.debug(` - ${printPattern(matcher)}`); if (!matcher.match(branchName)) { core.debug(` ${printPattern(matcher)} did not match`);