Skip to content

Commit 0c5d2de

Browse files
committed
Add action to remove stale issues and PRs
1 parent bac2edc commit 0c5d2de

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Close stale issues and PRs'
2+
3+
permissions:
4+
issues: write
5+
pull-requests: write
6+
7+
on:
8+
schedule:
9+
- cron: '17 0 1 * *' # Run on the 1st day of every month at 00:17 UTC (why 17? why not)
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/stale@v10
17+
with:
18+
stale-pr-message: >
19+
'This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
20+
stale-issue-message: >
21+
'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
22+
days-before-stale: 90
23+
days-before-close: 5

0 commit comments

Comments
 (0)