We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4140f commit 0cbf48bCopy full SHA for 0cbf48b
1 file changed
.github/actions-scripts/enable-automerge.js
@@ -1,12 +1,14 @@
1
import { getOctokit } from '@actions/github'
2
const token = process.env.GITHUB_TOKEN
3
const prNumber = process.env.AUTOMERGE_PR_NUMBER
4
+const [org, repo] = process.env.GITHUB_REPOSITORY.split('/')
5
const github = getOctokit(token)
6
7
main()
8
async function main() {
- const pull = await github.pulls.get({
9
- ...context.repo,
+ const pull = await github.rest.pulls.get(
10
+ org,
11
+ repo,
12
pull_number: parseInt(prNumber),
13
})
14
0 commit comments