mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 06:15:34 +00:00
Merge branch 'main' into main
This commit is contained in:
1 file changed
+12
-6
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user