Merge branch 'main' into main

This commit is contained in:
is-a.dev Bot authored and GitHub committed 2026-08-19 13:34:04 +08:00
commit 115b6b356f
1 file changed
+12 -6
+12 -6
View File
@@ -1,7 +1,7 @@
name: Update PR Branches name: Update PR Branches
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
update: update:
@@ -14,11 +14,17 @@ jobs:
with: with:
github-token: ${{ secrets.BOT }} github-token: ${{ secrets.BOT }}
script: | script: |
const { data: prs } = await github.rest.pulls.list({ const prs = await github.paginate(
owner: context.repo.owner, github.rest.pulls.list,
repo: context.repo.repo, {
state: "open" 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) { for (const pr of prs) {
try { try {