From 78ec57a610423f9db0c874bbd9c6f4a04e098a36 Mon Sep 17 00:00:00 2001 From: marocchino Date: Sun, 30 May 2021 10:44:23 +0900 Subject: [PATCH] fix: Update @action/github 5 --- src/comment.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/comment.ts b/src/comment.ts index ab3339e..852d544 100644 --- a/src/comment.ts +++ b/src/comment.ts @@ -14,7 +14,7 @@ export async function findPreviousComment( issue_number: number, header: string ): Promise<{body?: string; id: number} | undefined> { - const {data: comments} = await octokit.issues.listComments({ + const {data: comments} = await octokit.rest.issues.listComments({ ...repo, issue_number }) @@ -35,7 +35,7 @@ export async function updateComment( if (!body && !previousBody) return core.warning('Comment body cannot be blank') - await octokit.issues.updateComment({ + await octokit.rest.issues.updateComment({ ...repo, comment_id, body: previousBody @@ -57,7 +57,7 @@ export async function createComment( if (!body && !previousBody) return core.warning('Comment body cannot be blank') - await octokit.issues.createComment({ + await octokit.rest.issues.createComment({ ...repo, issue_number, body: previousBody @@ -73,7 +73,7 @@ export async function deleteComment( }, comment_id: number ): Promise { - await octokit.issues.deleteComment({ + await octokit.rest.issues.deleteComment({ ...repo, comment_id })