From 977bfa3a9e33b1d5af2d91c990ed8dc1c23df511 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 19 Aug 2026 13:33:34 +0800 Subject: [PATCH] Update update-pr-branches.yml --- .github/workflows/update-pr-branches.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-pr-branches.yml b/.github/workflows/update-pr-branches.yml index f5696ddc07..6c68c989e5 100644 --- a/.github/workflows/update-pr-branches.yml +++ b/.github/workflows/update-pr-branches.yml @@ -1,7 +1,7 @@ name: Update PR Branches on: - workflow_dispatch: + workflow_dispatch: jobs: update: @@ -14,11 +14,17 @@ jobs: with: github-token: ${{ secrets.BOT }} script: | - const { data: prs } = await github.rest.pulls.list({ - owner: context.repo.owner, - repo: context.repo.repo, - state: "open" - }); + const prs = await github.paginate( + github.rest.pulls.list, + { + owner: context.repo.owner, + repo: context.repo.repo, + state: "open", + per_page: 100 + } + ); + + console.log(`Found ${prs.length} open PRs`); for (const pr of prs) { try {