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

This commit is contained in:
Josh Dales committed 2023-03-20 17:40:28 -04:00
1 parent 92990c0c57
commit d31255f7be
4 files changed
+26 -17

No files matched your search

+4
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;