Skip to content

Commit aaa9c6c

Browse files
committed
ci: add stale issue/PR cleanup workflow
1 parent 6a168d6 commit aaa9c6c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
actions: write # Needed for stateful resume behavior
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-slim
16+
steps:
17+
- uses: actions/stale@v10
18+
with:
19+
days-before-stale: 60
20+
days-before-close: 30
21+
22+
stale-issue-message: >
23+
This issue has been inactive for 60 days and is now marked as stale.
24+
Add a comment or update labels if you want to keep it open; otherwise
25+
it will be closed in 30 days.
26+
stale-pr-message: >
27+
This pull request has been inactive for 60 days and is now marked as stale.
28+
Push new commits or comment if you want to keep it open; otherwise
29+
it will be closed in 30 days.
30+
close-issue-message: >
31+
This issue was closed automatically after being stale for 30 days without activity.
32+
close-pr-message: >
33+
This pull request was closed automatically after being stale for 30 days without activity.
34+
35+
stale-issue-label: 'status:stale'
36+
stale-pr-label: 'status:stale'
37+
38+
exempt-issue-labels: 'prio:critical,prio:high,type:security,status:blocked,type:feat'
39+
exempt-pr-labels: 'prio:critical,prio:high,type:security,status:blocked,type:feat'
40+
41+
exempt-all-assignees: true
42+
remove-stale-when-updated: true
43+
delete-branch: false

0 commit comments

Comments
 (0)