Skip to content

Commit ca31112

Browse files
Activate minimatch option matchBase (#22)
Fix matchOptions initialization to include matchBase for consistency
1 parent 787e24f commit ca31112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pr-review/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function run(config: Config): Promise<void> {
2626

2727
const throttlingOptions: ThrottlingOptions = { onSecondaryRateLimit: () => true, onRateLimit: () => true }
2828
const octokit = github.getOctokit(config.userToken, { baseUrl: config.githubApiUrl, throttle: throttlingOptions }, throttling, retry)
29-
const matchOptions: MinimatchOptions = { dot: true, nocase: true }
29+
const matchOptions: MinimatchOptions = { matchBase: true, dot: true, nocase: true }
3030
const repoRef = { owner: config.owner, repo: config.repo }
3131

3232
core.info(`Get PR #${config.prNumber} from ${repoRef.owner}/${repoRef.repo}`)

pr-summary/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function run(config: Config): Promise<void> {
2323

2424
const throttlingOptions: ThrottlingOptions = { onSecondaryRateLimit: () => true, onRateLimit: () => true }
2525
const octokit = github.getOctokit(config.userToken, { baseUrl: config.githubApiUrl, throttle: throttlingOptions }, throttling, retry)
26-
const matchOptions: MinimatchOptions = { dot: true, nocase: true }
26+
const matchOptions: MinimatchOptions = { matchBase: true, dot: true, nocase: true }
2727
const repoRef = { owner: config.owner, repo: config.repo }
2828

2929
core.info(`Get PR #${config.prNumber} from ${repoRef.owner}/${repoRef.repo}`)

0 commit comments

Comments
 (0)