Update update-pr-branches.yml

This commit is contained in:
William Harrison authored and GitHub committed 2026-08-19 13:33:34 +08:00
1 parent d7c47eba87
commit 977bfa3a9e
1 file changed
+12 -6
+12 -6
View File
@@ -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 {