mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 21:17:02 +00:00
Build command
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -91,11 +91,11 @@ function checkAllBranch(regexps, branchBase) {
|
|||||||
const matchers = regexps.map(regexp => new RegExp(regexp));
|
const matchers = regexps.map(regexp => new RegExp(regexp));
|
||||||
for (const matcher of matchers) {
|
for (const matcher of matchers) {
|
||||||
if (!matchBranchPattern(matcher, branchName)) {
|
if (!matchBranchPattern(matcher, branchName)) {
|
||||||
core.debug(` "branch" patterns matched against ${branchName}`);
|
core.debug(` "branch" patterns did not match against ${branchName}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
core.debug(` "branch" patterns did not match against ${branchName}`);
|
core.debug(` "branch" patterns matched against ${branchName}`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
exports.checkAllBranch = checkAllBranch;
|
exports.checkAllBranch = checkAllBranch;
|
||||||
@@ -481,7 +481,7 @@ function checkAll(matchConfigs, changedFiles) {
|
|||||||
}
|
}
|
||||||
if (matchConfig.changedFiles) {
|
if (matchConfig.changedFiles) {
|
||||||
if ((0, changedFiles_1.checkAllChangedFiles)(changedFiles, matchConfig.changedFiles)) {
|
if ((0, changedFiles_1.checkAllChangedFiles)(changedFiles, matchConfig.changedFiles)) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (matchConfig.headBranch) {
|
if (matchConfig.headBranch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user