From 922ffdf5ad73c1355b621b9c54e33dfc5070199f Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Sat, 28 Jan 2023 22:43:56 -0500 Subject: [PATCH] Remove deprecated IMinimatch import from labeler.ts --- src/labeler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/labeler.ts b/src/labeler.ts index 0c24d558..a83181ca 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -1,7 +1,7 @@ import * as core from '@actions/core'; import * as github from '@actions/github'; import * as yaml from 'js-yaml'; -import {Minimatch, IMinimatch} from 'minimatch'; +import {Minimatch} from 'minimatch'; import {checkBranch, toMatchConfigWithBranches} from './branch'; @@ -155,7 +155,7 @@ function toMatchConfig(config: StringOrMatchConfig): MatchConfig { return toMatchConfigWithBranches(config); } -function printPattern(matcher: IMinimatch): string { +function printPattern(matcher: Minimatch): string { return (matcher.negate ? '!' : '') + matcher.pattern; } @@ -173,7 +173,7 @@ export function checkGlobs( return false; } -function isMatch(changedFile: string, matchers: IMinimatch[]): boolean { +function isMatch(changedFile: string, matchers: Minimatch[]): boolean { core.debug(` matching patterns against file ${changedFile}`); for (const matcher of matchers) { core.debug(` - ${printPattern(matcher)}`);