Skip to content

Commit cf25664

Browse files
committed
Add workflow to automatically close stale issues
1 parent 43439c7 commit cf25664

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Close stale issues'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * *'
7+
8+
permissions:
9+
issues: 'write'
10+
11+
jobs:
12+
stale:
13+
name: 'Close stale issues'
14+
runs-on: 'ubuntu-latest'
15+
steps:
16+
- uses: actions/stale@v9
17+
with:
18+
ascending: false
19+
any-of-issue-labels: 'State: Awaiting Response'
20+
stale-issue-label: 'State: Stale'
21+
stale-issue-message: 'This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 2 days.'
22+
close-issue-message: 'This issue was closed because it has been stalled for 2 days with no activity.'
23+
days-before-issue-stale: 5
24+
days-before-issue-close: 2
25+
days-before-pr-stale: -1
26+
days-before-pr-close: -1

0 commit comments

Comments
 (0)