mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 21:17:02 +00:00
Make sure that empty config options don't accidently label things
This commit is contained in:
@@ -151,6 +151,10 @@ export function checkMatchConfigs(
|
||||
}
|
||||
|
||||
function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean {
|
||||
if (!Object.keys(matchConfig).length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (matchConfig.changedFiles?.all) {
|
||||
if (!checkAll(changedFiles, matchConfig.changedFiles.all)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user