Skip to content

Commit b789408

Browse files
committed
GitHub Meta: Add stale issue auto-bot.
1 parent 1d650a7 commit b789408

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/stale-issues.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Close stale issues
2+
3+
on:
4+
schedule:
5+
- cron: "17 3 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
steps:
17+
- uses: actions/stale@v10
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
# Issues only
22+
days-before-issue-stale: 7
23+
days-before-issue-close: 3
24+
days-before-pr-stale: -1
25+
days-before-pr-close: -1
26+
27+
stale-issue-label: stale
28+
stale-issue-message: >
29+
This issue has had no activity for 7 days, so it is being marked stale.
30+
If there is still no follow-up in 3 more days, it will be closed automatically.
31+
close-issue-message: >
32+
Closing this issue because it has been stale for 3 days with no further activity.
33+
34+
# Never touch enhancements
35+
exempt-issue-labels: enhancement
36+
37+
# Never touch assigned issues
38+
exempt-all-issue-assignees: true
39+
40+
operations-per-run: 200

0 commit comments

Comments
 (0)