diff --git a/.github/workflows/cicd_scheduled_notify-seated-prs.yml b/.github/workflows/cicd_scheduled_notify-seated-prs.yml index f1fad0f7ed3d..3cbfac9a5da3 100644 --- a/.github/workflows/cicd_scheduled_notify-seated-prs.yml +++ b/.github/workflows/cicd_scheduled_notify-seated-prs.yml @@ -25,11 +25,13 @@ jobs: github-token: ${{ secrets.CI_MACHINE_TOKEN }} script: | async function fetchOpenPrs() { - const response = await github.rest.pulls.paginate({ + const opts = github.rest.pulls.get.endpoint.merge({ + ..., owner: '${{ github.repository_owner }}', repo: '${{ env.REPO }}', per_page: 100 }); + const response = github.paginate(opts); return response.data; }