Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #387 from ergebnis/fix/octokit
Browse files Browse the repository at this point in the history
Fix: Adjust usage of `octokit`
  • Loading branch information
localheinz committed Nov 23, 2021
2 parents 3535457 + 5eeaa7d commit 3690036
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/merge.yaml
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 All @@ -55,7 +55,7 @@ jobs:
"ergebnis-bot",
]
await github.issues.addAssignees({
await github.rest.issues.addAssignees({
owner: repository.owner,
repo: repository.repo,
assignees: assignees,
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/triage.yaml
Expand Up @@ -34,7 +34,7 @@ jobs:
if (matches instanceof Array && branchPrefixLabels.hasOwnProperty(matches[1])) {
const label = branchPrefixLabels[matches[1]]
github.issues.addLabels({
github.rest.issues.addLabels({
issue_number: pullRequest.number,
labels: [
label
Expand Down

0 comments on commit 3690036

Please sign in to comment.