Skip to content

Commit aadf5f8

Browse files
Add stale bot for old PRs (#1186)
* Add stale bot for old PRs * Update message * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 <[email protected]> * Fix stale workflow * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 <[email protected]> --------- Co-authored-by: 罗泽轩 <[email protected]>
1 parent 18d1017 commit aadf5f8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Maintenance: Close Stale PRs"
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
permissions:
7+
pull-requests: "write"
8+
9+
jobs:
10+
stale:
11+
runs-on: "ubuntu-latest"
12+
if: github.repository_owner == 'tj'
13+
steps:
14+
- uses: "actions/stale@v9"
15+
with:
16+
close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue"
17+
days-before-pr-stale: 350
18+
days-before-pr-close: 15

0 commit comments

Comments
 (0)