diff options
-rw-r--r-- | .github/workflows/nightly_pr_comment.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/nightly_pr_comment.yml b/.github/workflows/nightly_pr_comment.yml index 6914cb063..d92dee5c8 100644 --- a/.github/workflows/nightly_pr_comment.yml +++ b/.github/workflows/nightly_pr_comment.yml | |||
@@ -19,7 +19,7 @@ jobs: | |||
19 | const pull_head_sha = '${{github.event.workflow_run.head_sha}}'; | 19 | const pull_head_sha = '${{github.event.workflow_run.head_sha}}'; |
20 | 20 | ||
21 | const issue_number = await (async () => { | 21 | const issue_number = await (async () => { |
22 | const pulls = await github.rest.pulls.list({owner, repo}); | 22 | const pulls = await github.rest.pulls.list.endpoint.merge({owner, repo}); |
23 | for await (const {data} of github.paginate.iterator(pulls)) { | 23 | for await (const {data} of github.paginate.iterator(pulls)) { |
24 | for (const pull of data) { | 24 | for (const pull of data) { |
25 | if (pull.head.sha === pull_head_sha) { | 25 | if (pull.head.sha === pull_head_sha) { |
@@ -68,4 +68,4 @@ jobs: | |||
68 | } else { | 68 | } else { |
69 | core.info(`Creating a comment`); | 69 | core.info(`Creating a comment`); |
70 | await github.rest.issues.createComment({repo, owner, issue_number, body}); | 70 | await github.rest.issues.createComment({repo, owner, issue_number, body}); |
71 | } \ No newline at end of file | 71 | } |