mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-24 09:33:05 +00:00
Fix fetch failure when iterating over PRs
This commit is contained in:
parent
54c16f4052
commit
b51d57b642
1 changed files with 2 additions and 2 deletions
4
.github/workflows/nightly_pr_comment.yml
vendored
4
.github/workflows/nightly_pr_comment.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
|||
const pull_head_sha = '${{github.event.workflow_run.head_sha}}';
|
||||
|
||||
const issue_number = await (async () => {
|
||||
const pulls = await github.rest.pulls.list({owner, repo});
|
||||
const pulls = await github.rest.pulls.list.endpoint.merge({owner, repo});
|
||||
for await (const {data} of github.paginate.iterator(pulls)) {
|
||||
for (const pull of data) {
|
||||
if (pull.head.sha === pull_head_sha) {
|
||||
|
@ -68,4 +68,4 @@ jobs:
|
|||
} else {
|
||||
core.info(`Creating a comment`);
|
||||
await github.rest.issues.createComment({repo, owner, issue_number, body});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue