Skip to content

Commit c003b20

Browse files
authored
Auto-close inactive issues and PRs after 60 days
1 parent 3cf8220 commit c003b20

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/stale.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Stale issue automation"
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 9 * * *"
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
operations-per-run: 200
19+
days-before-stale: 60
20+
days-before-close: 0
21+
close-issue-message: 'Closing this issue due to 60 days of inactivity.'
22+
close-pr-message: 'Closing this PR due to 60 days of inactivity.'

0 commit comments

Comments
 (0)