From 004e46f649b61c0e1d436150ee9868171180fbe8 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 23 Sep 2021 21:21:43 +0000 Subject: [PATCH] Fix breaking change in workflow test --- .github/workflows/pull-request-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request-test.yml b/.github/workflows/pull-request-test.yml index df4bf425..a9c7c0f2 100644 --- a/.github/workflows/pull-request-test.yml +++ b/.github/workflows/pull-request-test.yml @@ -14,7 +14,7 @@ jobs: with: script: | // Get the existing comments. - const {data: comments} = await github.issues.listComments({ + const {data: comments} = await github.rest.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.number, @@ -28,14 +28,14 @@ jobs: console.log('Not attempting to write comment on PR from fork'); } else { if (botComment) { - await github.issues.updateComment({ + await github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: botComment.id, body: commentBody }) } else { - await github.issues.createComment({ + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.number,