Skip to content

Commit a207cdf

Browse files
committed
Use process env cwd instead of '.'
1 parent 2b0d5a8 commit a207cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function commentOnMergablePRs() {
2626
}
2727

2828
// Setup
29-
const cwd = "."
29+
const cwd = process.cwd()
3030
const octokit = getOctokit(process.env.GITHUB_TOKEN)
3131
const pr = context.payload.pull_request
3232
const thisRepo = { owner: context.repo.owner, repo: context.repo.repo }
@@ -97,7 +97,7 @@ async function mergeIfLGTMAndHasAccess() {
9797
}
9898

9999
// Setup
100-
const cwd = "."
100+
const cwd = process.cwd()
101101
const octokit = getOctokit(process.env.GITHUB_TOKEN)
102102
const thisRepo = { owner: context.repo.owner, repo: context.repo.repo }
103103
const issue = context.payload.issue || context.payload.pull_request

0 commit comments

Comments
 (0)