Skip to content

Commit e8bb210

Browse files
committed
chore: add stale workflow
1 parent c9e6320 commit e8bb210

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/stale.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '30 1 * * *'
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@v8
18+
with:
19+
days-before-issue-stale: 30
20+
days-before-issue-close: 15
21+
days-before-pr-stale: 60
22+
days-before-pr-close: 60
23+
24+
stale-issue-label: 'stale:discard'
25+
exempt-issue-labels: 'stale:keep'
26+
stale-issue-message: >
27+
This issue has been automatically marked as "stale:discard". **If this issue still relevant, please leave
28+
any comment** (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to
29+
prioritize it yet.
30+
If you have any new additional information, please include it with your comment.
31+
close-issue-message: >
32+
Closing this issue after a prolonged period of inactivity. If this issue is still relevant, feel free to
33+
re-open the issue. Thank you!
34+
35+
stale-pr-label: 'stale:discard'
36+
exempt-pr-labels: 'stale:keep'
37+
stale-pr-message: >
38+
This pull request has been automatically marked as "stale:discard". **If this pull request is still
39+
relevant, please leave any comment** (for example, "bump"), and we'll keep it open. We are sorry that we
40+
haven't been able to prioritize reviewing it yet.
41+
Your contribution is very much appreciated!.
42+
close-pr-message: >
43+
Closing this pull request after a prolonged period of inactivity. If this issue is still relevant, please
44+
ask for this pull request to be reopened. Thank you!

0 commit comments

Comments
 (0)