Skip to content

Commit

Permalink
Merge pull request #132 from ergebnis/fix/octokit
Browse files Browse the repository at this point in the history
Fix: Adjust usage of `octokit`
  • Loading branch information
localheinz authored Dec 13, 2021
2 parents 75be992 + 7a53e2b commit 5efc628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
"ergebnis-bot",
]
await github.pulls.requestReviewers({
await github.rest.pulls.requestReviewers({
owner: repository.owner,
repo: repository.repo,
pull_number: pullRequest.number,
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
const pullRequest = context.payload.workflow_run.pull_requests[0]
const repository = context.repo
await github.pulls.createReview({
await github.rest.pulls.createReview({
event: "APPROVE",
owner: repository.owner,
repo: repository.repo,
Expand All @@ -85,7 +85,7 @@ jobs:
const pullRequest = context.payload.workflow_run.pull_requests[0]
const repository = context.repo
await github.pulls.merge({
await github.rest.pulls.merge({
merge_method: "merge",
owner: repository.owner,
pull_number: pullRequest.number,
Expand Down

0 comments on commit 5efc628

Please sign in to comment.