Make sure that empty config options don't accidently label things

This commit is contained in:
Josh Dales
2023-03-20 17:39:57 -04:00
parent 92990c0c57
commit d31255f7be
4 changed files with 26 additions and 17 deletions

View File

@@ -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;