Skip to content

Commit 4bc97e5

Browse files
authored
Add stale bot to auto-close fixed issues after 1 day (#7)
1 parent 3bb76dd commit 4bc97e5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Close Fixed Issues
2+
3+
on:
4+
schedule:
5+
- cron: '0 */6 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
11+
jobs:
12+
close-fixed:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
only-labels: 'status: fixed'
18+
days-before-stale: 1
19+
days-before-close: 0
20+
stale-issue-label: 'closing-soon'
21+
stale-issue-message: >
22+
This issue was marked as fixed 1 day ago with no further feedback.
23+
It will be closed shortly. If the fix doesn't work as expected,
24+
please comment and we'll reopen it.
25+
close-issue-message: >
26+
Closed automatically after 1 day with no feedback since the fix was shipped.
27+
Feel free to reopen if you run into any issues.
28+
exempt-issue-labels: 'pinned,status: blocked'
29+
days-before-pr-stale: -1
30+
days-before-pr-close: -1

0 commit comments

Comments
 (0)