diff --git a/.github/workflows/reusable-slack-open-prs-notification.yml b/.github/workflows/reusable-slack-open-prs-notification.yml index 90005d2..ae1455e 100644 --- a/.github/workflows/reusable-slack-open-prs-notification.yml +++ b/.github/workflows/reusable-slack-open-prs-notification.yml @@ -40,10 +40,11 @@ jobs: uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | - const { data: prs } = await github.rest.pulls.list({ + const prs = await github.paginate(github.rest.pulls.list, { owner: context.repo.owner, repo: context.repo.repo, state: 'open', + per_page: 100, }); const count = prs.length;