mirror of
https://github.com/actions/labeler
synced 2026-11-07 04:57:58 +01:00
Fix
This commit is contained in:
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -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)) {
|
||||
|
||||
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user