Skip to content

Commit

Permalink
fix: handle octokit api changes (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
leezumstein authored Nov 24, 2022
1 parent 4d7d0a1 commit 36fea2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/lib/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export async function approve (octokit, repo, { number }, body) {
await octokit.pulls.createReview({
await octokit.rest.pulls.createReview({
...repo,
pull_number: number,
event: 'APPROVE',
Expand All @@ -8,7 +8,7 @@ export async function approve (octokit, repo, { number }, body) {
}

export async function comment (octokit, repo, { number }, body) {
await octokit.issues.createComment({
await octokit.rest.issues.createComment({
...repo,
issue_number: number,
body
Expand Down

0 comments on commit 36fea2b

Please sign in to comment.