mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 04:57:21 +00:00
Update the debug values
This commit is contained in:
@@ -82,7 +82,6 @@ export function checkAnyChangedFiles(
|
|||||||
globs: string[]
|
globs: string[]
|
||||||
): boolean {
|
): boolean {
|
||||||
const matchers = globs.map(g => new Minimatch(g));
|
const matchers = globs.map(g => new Minimatch(g));
|
||||||
core.debug(` checking "any" patterns`);
|
|
||||||
for (const changedFile of changedFiles) {
|
for (const changedFile of changedFiles) {
|
||||||
if (isAnyMatch(changedFile, matchers)) {
|
if (isAnyMatch(changedFile, matchers)) {
|
||||||
core.debug(` "any" patterns matched against ${changedFile}`);
|
core.debug(` "any" patterns matched against ${changedFile}`);
|
||||||
@@ -99,7 +98,6 @@ export function checkAllChangedFiles(
|
|||||||
globs: string[]
|
globs: string[]
|
||||||
): boolean {
|
): boolean {
|
||||||
const matchers = globs.map(g => new Minimatch(g));
|
const matchers = globs.map(g => new Minimatch(g));
|
||||||
core.debug(` checking "all" patterns`);
|
|
||||||
for (const changedFile of changedFiles) {
|
for (const changedFile of changedFiles) {
|
||||||
if (!isAllMatch(changedFile, matchers)) {
|
if (!isAllMatch(changedFile, matchers)) {
|
||||||
core.debug(` "all" patterns did not match against ${changedFile}`);
|
core.debug(` "all" patterns did not match against ${changedFile}`);
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ export function checkMatchConfigs(
|
|||||||
|
|
||||||
function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean {
|
function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean {
|
||||||
if (!Object.keys(matchConfig).length) {
|
if (!Object.keys(matchConfig).length) {
|
||||||
|
core.debug(` no "any" or "all" patterns to check`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user