mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 12:37:48 +00:00
Add a guard clause to stop false changed-files positives
This commit is contained in:
@@ -273,6 +273,11 @@ export function checkAll(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (matchConfig.changedFiles) {
|
if (matchConfig.changedFiles) {
|
||||||
|
if (!changedFiles.length) {
|
||||||
|
core.debug(` no files to check "changed-files" patterns against`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!checkAllChangedFiles(changedFiles, matchConfig.changedFiles)) {
|
if (!checkAllChangedFiles(changedFiles, matchConfig.changedFiles)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user