mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 12:07:32 +00:00
Fix PR branch labeler
This commit is contained in:
@@ -218,6 +218,7 @@ function checkBranch(glob: string): boolean {
|
|||||||
const matcher = new Minimatch(glob);
|
const matcher = new Minimatch(glob);
|
||||||
const branchName = github.context.ref;
|
const branchName = github.context.ref;
|
||||||
core.debug(` checking "branch" pattern against ${branchName}`);
|
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)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (!matcher.match(branchName)) {
|
if (!matcher.match(branchName)) {
|
||||||
core.debug(` ${printPattern(matcher)} did not match`);
|
core.debug(` ${printPattern(matcher)} did not match`);
|
||||||
|
|||||||
Reference in New Issue
Block a user