Skip to content

Commit a94b6da

Browse files
just1and0mikehardy
andauthored
Add stale issue and PR workflow (#2329)
* Add stale issue and PR workflow Adds a GitHub Actions workflow using `actions/stale` to automatically mark inactive issues and PRs as stale, then close them after 15 additional days without activity. * Update .github/workflows/stale-issue.yaml Co-authored-by: Mike Hardy <github@mikehardy.net> * Fix reviews * fix action SHA pin * Update stale-issue.yaml --------- Co-authored-by: Mike Hardy <github@mikehardy.net>
1 parent c5461b6 commit a94b6da

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/stale-issue.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Mark stale issues and pull requests
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '30 1 * * *'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
stale:
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
20+
with:
21+
operations-per-run: 1000
22+
stale-issue-message: |
23+
Hello, to help manage issues we automatically close stale issues.
24+
25+
This issue has been automatically marked as stale because it has not had activity for quite some time. If it is still relevant, leave a comment to keep it open.
26+
27+
> This issue will be closed in 15 days if no further activity occurs.
28+
29+
Thank you for your contributions.
30+
stale-pr-message: |
31+
Hello, this PR has been open for more than 28 days with no activity.
32+
33+
If you think this is a mistake, please comment to keep this open. Thanks for contributing!
34+
35+
> This PR will be closed in 15 days if no further activity occurs.
36+
exempt-issue-labels: 'keep open'
37+
exempt-pr-labels: 'keep open'
38+
close-issue-reason: not-planned
39+
days-before-stale: 28
40+
days-before-close: 15
41+
stale-issue-label: 'not-planned'
42+
stale-pr-label: 'stale'

0 commit comments

Comments
 (0)