Skip to content

Commit

Permalink
Update pr-artifacts-comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench authored Dec 19, 2023
1 parent f03e66e commit 790d6f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr-artifacts-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
const pull_user_id = ${{github.event.sender.id}};
const issue_number = await (async () => {
const pulls = await github.pulls.list({owner, repo});
for await (const {data} of github.paginate.iterator(pulls)) {
for await (const {data} of github.paginate.iterator(github.rest.pulls.list, {owner, repo})) {
for (const pull of data) {
if (pull.head.sha === pull_head_sha && pull.user.id === pull_user_id) {
return pull.number;
Expand Down

0 comments on commit 790d6f9

Please sign in to comment.