From 3ddce51a657998e19ff46b2b3cb11fe49f72c70d Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Mon, 27 Mar 2023 16:15:03 -0400 Subject: [PATCH] Update the debug values --- src/changedFiles.ts | 2 -- src/labeler.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/changedFiles.ts b/src/changedFiles.ts index cc154e78..35697b87 100644 --- a/src/changedFiles.ts +++ b/src/changedFiles.ts @@ -82,7 +82,6 @@ export function checkAnyChangedFiles( globs: string[] ): boolean { const matchers = globs.map(g => new Minimatch(g)); - core.debug(` checking "any" patterns`); for (const changedFile of changedFiles) { if (isAnyMatch(changedFile, matchers)) { core.debug(` "any" patterns matched against ${changedFile}`); @@ -99,7 +98,6 @@ export function checkAllChangedFiles( globs: string[] ): boolean { const matchers = globs.map(g => new Minimatch(g)); - core.debug(` checking "all" patterns`); for (const changedFile of changedFiles) { if (!isAllMatch(changedFile, matchers)) { core.debug(` "all" patterns did not match against ${changedFile}`); diff --git a/src/labeler.ts b/src/labeler.ts index aa1b4c13..aa55596a 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -201,6 +201,7 @@ export function checkMatchConfigs( function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean { if (!Object.keys(matchConfig).length) { + core.debug(` no "any" or "all" patterns to check`); return false; }