mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 13:07:24 +00:00
Run the build command
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -212,7 +212,6 @@ function isAllMatch(changedFile, matchers) {
|
|||||||
}
|
}
|
||||||
function checkAnyChangedFiles(changedFiles, globs) {
|
function checkAnyChangedFiles(changedFiles, globs) {
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g));
|
||||||
core.debug(` checking "any" patterns`);
|
|
||||||
for (const changedFile of changedFiles) {
|
for (const changedFile of changedFiles) {
|
||||||
if (isAnyMatch(changedFile, matchers)) {
|
if (isAnyMatch(changedFile, matchers)) {
|
||||||
core.debug(` "any" patterns matched against ${changedFile}`);
|
core.debug(` "any" patterns matched against ${changedFile}`);
|
||||||
@@ -225,7 +224,6 @@ function checkAnyChangedFiles(changedFiles, globs) {
|
|||||||
exports.checkAnyChangedFiles = checkAnyChangedFiles;
|
exports.checkAnyChangedFiles = checkAnyChangedFiles;
|
||||||
function checkAllChangedFiles(changedFiles, globs) {
|
function checkAllChangedFiles(changedFiles, globs) {
|
||||||
const matchers = globs.map(g => new minimatch_1.Minimatch(g));
|
const matchers = globs.map(g => new minimatch_1.Minimatch(g));
|
||||||
core.debug(` checking "all" patterns`);
|
|
||||||
for (const changedFile of changedFiles) {
|
for (const changedFile of changedFiles) {
|
||||||
if (!isAllMatch(changedFile, matchers)) {
|
if (!isAllMatch(changedFile, matchers)) {
|
||||||
core.debug(` "all" patterns did not match against ${changedFile}`);
|
core.debug(` "all" patterns did not match against ${changedFile}`);
|
||||||
@@ -424,6 +422,7 @@ function checkMatchConfigs(changedFiles, matchConfigs) {
|
|||||||
exports.checkMatchConfigs = checkMatchConfigs;
|
exports.checkMatchConfigs = checkMatchConfigs;
|
||||||
function checkMatch(changedFiles, matchConfig) {
|
function checkMatch(changedFiles, matchConfig) {
|
||||||
if (!Object.keys(matchConfig).length) {
|
if (!Object.keys(matchConfig).length) {
|
||||||
|
core.debug(` no "any" or "all" patterns to check`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (matchConfig.all) {
|
if (matchConfig.all) {
|
||||||
|
|||||||
Reference in New Issue
Block a user