Skip to content

Commit 29b19a0

Browse files
authored
feat: add stale issue and PR management workflow (#89)
* feat: add stale issue and PR management workflow * chore: add comments * fix: update comments by the way * fix: update stale PR messages for consistency * fix: revert pr template changes
1 parent a6b1574 commit 29b19a0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/stale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Mark stale issues and PRs"
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # Runs every day at 2 AM UTC
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity.'
18+
stale-pr-message: 'This PR has been automatically marked as stale due to inactivity.'
19+
close-issue-message: 'This issue has been automatically closed due to inactivity.'
20+
close-pr-message: 'This PR has been automatically closed due to inactivity.'
21+
days-before-stale: 30 # Days of inactivity before marking as stale
22+
days-before-close: 7 # Days of inactivity before closing stale issues/PRs
23+
stale-issue-label: 'stale'
24+
stale-pr-label: 'stale'
25+
exempt-issue-labels: 'do not close'
26+
exempt-pr-labels: 'do not close'
27+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)