Skip to content

Commit ff48f58

Browse files
authored
Create dormant-issues.yaml
1 parent e6e95c1 commit ff48f58

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Mark and Close Dormant Issues
2+
3+
on:
4+
schedule:
5+
- cron: "0 2 * * *" # daily
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
16+
# 6 months ≈ 180 days
17+
days-before-stale: 180
18+
# 3 weeks = 21 days
19+
days-before-close: 21
20+
21+
stale-issue-label: "inactive"
22+
close-issue-label: "dormant"
23+
24+
stale-issue-message: >
25+
This issue has been inactive for 6 months.
26+
It will be closed as dormant in 3 weeks if no further activity occurs.
27+
28+
close-issue-message: >
29+
Closing this issue as dormant due to continued inactivity.
30+
31+
# Optional but recommended
32+
#exempt-issue-labels:
33+
operations-per-run: 100
34+
remove-stale-when-updated: true
35+
only-issues: true

0 commit comments

Comments
 (0)