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