From 34a5bf6e8301516ebf4c03cacb06b7a49dca916d Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Thu, 11 May 2023 17:01:46 -0400 Subject: [PATCH] Update the validation when there are no options in the matchConfigs --- src/labeler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/labeler.ts b/src/labeler.ts index 6b056543..7325e646 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -225,7 +225,7 @@ export function checkAny( changedFiles: string[] ): boolean { core.debug(` checking "any" patterns`); - if (!Object.keys(matchConfigs).length) { + if (!matchConfigs.length) { core.debug(` no "any" patterns to check`); return false; } @@ -260,7 +260,7 @@ export function checkAll( changedFiles: string[] ): boolean { core.debug(` checking "all" patterns`); - if (!Object.keys(matchConfigs).length) { + if (!matchConfigs.length) { core.debug(` no "all" patterns to check`); return false; }