From ffb9af97dba239aebcb6d510968c9887a4922062 Mon Sep 17 00:00:00 2001 From: weitingchen Date: Mon, 19 Aug 2024 10:33:33 +0000 Subject: [PATCH] Update github rest --- .github/workflows/dev_cron/issues_link.js | 2 +- .github/workflows/dev_cron/title_check.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev_cron/issues_link.js b/.github/workflows/dev_cron/issues_link.js index b3aeccd31e2e..f7e64dede247 100644 --- a/.github/workflows/dev_cron/issues_link.js +++ b/.github/workflows/dev_cron/issues_link.js @@ -34,7 +34,7 @@ async function haveComment(github, context, pullRequestNumber, body) { issue_number: pullRequestNumber }; while (true) { - const response = await github.issues.listComments(options); + const response = await github.rest.issues.listComments(options); if (response.data.some(comment => comment.body === body)) { return true; } diff --git a/.github/workflows/dev_cron/title_check.js b/.github/workflows/dev_cron/title_check.js index 1f383530160d..8b125b480a4b 100644 --- a/.github/workflows/dev_cron/title_check.js +++ b/.github/workflows/dev_cron/title_check.js @@ -25,7 +25,7 @@ function haveISSUESID(title) { } async function commentOpenISSUESIssue(github, context, pullRequestNumber) { - 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: pullRequestNumber