From 36fea2bc1b6dc22f875703724e7114cb3e526c95 Mon Sep 17 00:00:00 2001 From: Lee Zumstein <4258033+leezumstein@users.noreply.github.com> Date: Thu, 24 Nov 2022 10:37:49 -0500 Subject: [PATCH] fix: handle octokit api changes (#167) --- action/lib/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action/lib/api.js b/action/lib/api.js index 61e098f7..e604afd5 100644 --- a/action/lib/api.js +++ b/action/lib/api.js @@ -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', @@ -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