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)) {