mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-06 12:13:21 +00:00
Update update-pr-branches.yml
This commit is contained in:
1 parent
d7c47eba87
commit
977bfa3a9e
1 file changed
+12
-6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user