mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 20:24:51 +00:00
Update the validation when there are no options in the matchConfigs
This commit is contained in:
@@ -225,7 +225,7 @@ export function checkAny(
|
|||||||
changedFiles: string[]
|
changedFiles: string[]
|
||||||
): boolean {
|
): boolean {
|
||||||
core.debug(` checking "any" patterns`);
|
core.debug(` checking "any" patterns`);
|
||||||
if (!Object.keys(matchConfigs).length) {
|
if (!matchConfigs.length) {
|
||||||
core.debug(` no "any" patterns to check`);
|
core.debug(` no "any" patterns to check`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -260,7 +260,7 @@ export function checkAll(
|
|||||||
changedFiles: string[]
|
changedFiles: string[]
|
||||||
): boolean {
|
): boolean {
|
||||||
core.debug(` checking "all" patterns`);
|
core.debug(` checking "all" patterns`);
|
||||||
if (!Object.keys(matchConfigs).length) {
|
if (!matchConfigs.length) {
|
||||||
core.debug(` no "all" patterns to check`);
|
core.debug(` no "all" patterns to check`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user