diff --git a/pr-review/src/main.ts b/pr-review/src/main.ts index a3dc411..98486a8 100644 --- a/pr-review/src/main.ts +++ b/pr-review/src/main.ts @@ -26,7 +26,7 @@ export async function run(config: Config): Promise { const throttlingOptions: ThrottlingOptions = { onSecondaryRateLimit: () => true, onRateLimit: () => true } const octokit = github.getOctokit(config.userToken, { baseUrl: config.githubApiUrl, throttle: throttlingOptions }, throttling, retry) - const matchOptions: MinimatchOptions = { dot: true, nocase: true } + const matchOptions: MinimatchOptions = { matchBase: true, dot: true, nocase: true } const repoRef = { owner: config.owner, repo: config.repo } core.info(`Get PR #${config.prNumber} from ${repoRef.owner}/${repoRef.repo}`) diff --git a/pr-summary/src/main.ts b/pr-summary/src/main.ts index ae0b122..c6bd333 100644 --- a/pr-summary/src/main.ts +++ b/pr-summary/src/main.ts @@ -23,7 +23,7 @@ export async function run(config: Config): Promise { const throttlingOptions: ThrottlingOptions = { onSecondaryRateLimit: () => true, onRateLimit: () => true } const octokit = github.getOctokit(config.userToken, { baseUrl: config.githubApiUrl, throttle: throttlingOptions }, throttling, retry) - const matchOptions: MinimatchOptions = { dot: true, nocase: true } + const matchOptions: MinimatchOptions = { matchBase: true, dot: true, nocase: true } const repoRef = { owner: config.owner, repo: config.repo } core.info(`Get PR #${config.prNumber} from ${repoRef.owner}/${repoRef.repo}`)