mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 03:58:05 +00:00
minor adjustment for successful branch matching.
To better follow the any convention as opposed to all
This commit is contained in:
@@ -225,13 +225,13 @@ function checkAll(changedFiles: string[], globs: string[]): boolean {
|
||||
|
||||
function matchBranchPattern(matcher: IMinimatch, branchName: string): boolean {
|
||||
core.debug(` - ${printPattern(matcher)}`);
|
||||
if (!matcher.match(branchName)) {
|
||||
core.debug(` ${printPattern(matcher)} did not match`);
|
||||
return false;
|
||||
if (matcher.match(branchName)) {
|
||||
core.debug(` "branch" pattern matched`);
|
||||
return true;
|
||||
}
|
||||
|
||||
core.debug(` "branch" pattern matched`);
|
||||
return true;
|
||||
core.debug(` ${printPattern(matcher)} did not match`);
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkBranch(glob: string | string[]): boolean {
|
||||
|
||||
Reference in New Issue
Block a user