mirror of
https://github.com/actions/labeler
synced 2026-05-14 02:31:11 +02:00
Update more debugging statements
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -187,9 +187,9 @@ function printPattern(matcher) {
|
|||||||
return (matcher.negate ? '!' : '') + matcher.pattern;
|
return (matcher.negate ? '!' : '') + matcher.pattern;
|
||||||
}
|
}
|
||||||
function isAnyMatch(changedFile, matchers) {
|
function isAnyMatch(changedFile, matchers) {
|
||||||
core.debug(` matching patterns against file ${changedFile}`);
|
core.debug(` matching patterns against file ${changedFile}`);
|
||||||
for (const matcher of matchers) {
|
for (const matcher of matchers) {
|
||||||
core.debug(` - ${printPattern(matcher)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (matcher.match(changedFile)) {
|
if (matcher.match(changedFile)) {
|
||||||
core.debug(` ${printPattern(matcher)} matched`);
|
core.debug(` ${printPattern(matcher)} matched`);
|
||||||
return true;
|
return true;
|
||||||
@@ -199,9 +199,9 @@ function isAnyMatch(changedFile, matchers) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isAllMatch(changedFile, matchers) {
|
function isAllMatch(changedFile, matchers) {
|
||||||
core.debug(` matching patterns against file ${changedFile}`);
|
core.debug(` matching patterns against file ${changedFile}`);
|
||||||
for (const matcher of matchers) {
|
for (const matcher of matchers) {
|
||||||
core.debug(` - ${printPattern(matcher)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (!matcher.match(changedFile)) {
|
if (!matcher.match(changedFile)) {
|
||||||
core.debug(` ${printPattern(matcher)} did not match`);
|
core.debug(` ${printPattern(matcher)} did not match`);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ function printPattern(matcher: Minimatch): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isAnyMatch(changedFile: string, matchers: Minimatch[]): boolean {
|
function isAnyMatch(changedFile: string, matchers: Minimatch[]): boolean {
|
||||||
core.debug(` matching patterns against file ${changedFile}`);
|
core.debug(` matching patterns against file ${changedFile}`);
|
||||||
for (const matcher of matchers) {
|
for (const matcher of matchers) {
|
||||||
core.debug(` - ${printPattern(matcher)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (matcher.match(changedFile)) {
|
if (matcher.match(changedFile)) {
|
||||||
core.debug(` ${printPattern(matcher)} matched`);
|
core.debug(` ${printPattern(matcher)} matched`);
|
||||||
return true;
|
return true;
|
||||||
@@ -64,9 +64,9 @@ function isAnyMatch(changedFile: string, matchers: Minimatch[]): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isAllMatch(changedFile: string, matchers: Minimatch[]): boolean {
|
function isAllMatch(changedFile: string, matchers: Minimatch[]): boolean {
|
||||||
core.debug(` matching patterns against file ${changedFile}`);
|
core.debug(` matching patterns against file ${changedFile}`);
|
||||||
for (const matcher of matchers) {
|
for (const matcher of matchers) {
|
||||||
core.debug(` - ${printPattern(matcher)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (!matcher.match(changedFile)) {
|
if (!matcher.match(changedFile)) {
|
||||||
core.debug(` ${printPattern(matcher)} did not match`);
|
core.debug(` ${printPattern(matcher)} did not match`);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user