Skip to content

Commit 2df882c

Browse files
authored
Add "stale" action to help manage issues and pull requests (#1827)
Closes #1680
1 parent 64ffa09 commit 2df882c

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v9
17+
with:
18+
stale-issue-label: 'stale'
19+
stale-pr-label: 'stale'
20+
exempt-issue-labels: 'good first issue,Design Proposal,in-progress'
21+
exempt-pr-labels: 'in-progress'
22+
23+
days-before-issue-stale: 60
24+
days-before-issue-close: 14
25+
days-before-pr-stale: 90
26+
days-before-pr-close: 14
27+
28+
close-issue-reason: 'not_planned'
29+
30+
stale-issue-message: >
31+
This issue has been automatically marked as stale because it has not had
32+
recent activity. It will be closed in 14 days if no further activity occurs.
33+
If this is still relevant, please comment to keep it open.
34+
stale-pr-message: >
35+
This pull request has been automatically marked as stale because it has not had
36+
recent activity. It will be closed in 14 days if no further activity occurs.
37+
If this is still active work, please comment or push a new commit to keep it open.
38+
close-issue-message: >
39+
Closing due to inactivity. If this is still relevant, please reopen or file a new issue.
40+
close-pr-message: >
41+
Closing due to inactivity. Feel free to reopen if you'd like to continue this work.

0 commit comments

Comments
 (0)