From a7cc8a62ef0fcdcf8ff1516986c74c7f46ef6fa4 Mon Sep 17 00:00:00 2001 From: Alexander Kachkaev Date: Mon, 27 Mar 2023 09:47:52 +0100 Subject: [PATCH] Fix --- dist/index.js | 2 +- src/labeler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7087f8e2..6a872db8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -197,7 +197,7 @@ function checkAny(changedFiles, globs, dot) { } // equivalent to "Array.every()" but expanded for debugging and clarity function checkAll(changedFiles, globs, dot) { - const matchers = globs.map(g => new minimatch_1.Minimatch(g)); + const matchers = globs.map(g => new minimatch_1.Minimatch(g), { dot }); core.debug(` checking "all" patterns`); for (const changedFile of changedFiles) { if (!isMatch(changedFile, matchers)) { diff --git a/src/labeler.ts b/src/labeler.ts index 4fb70fb6..8788deb9 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -210,7 +210,7 @@ function checkAll( globs: string[], dot: boolean ): boolean { - const matchers = globs.map(g => new Minimatch(g)); + const matchers = globs.map(g => new Minimatch(g), {dot}); core.debug(` checking "all" patterns`); for (const changedFile of changedFiles) { if (!isMatch(changedFile, matchers)) {