Skip to content

Commit 0e3480b

Browse files
committed
Setup stale issue/PR handling
1 parent e42d849 commit 0e3480b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/stale.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v8
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
days-before-stale: 60
25+
days-before-close: 14
26+
stale-issue-message: |
27+
This issue has not received any recent updates.
28+
We encourage you to check if this is still an issue after
29+
the latest release and if you find that this is still a problem,
30+
please leave a comment below and auto-close will be canceled.
31+
stale-issue-label: 'stale'
32+
close-issue-message: |
33+
This issue has automatically been closed due to inactivity.
34+
close-issue-label: 'closed for inactivity'
35+
exempt-issue-labels: 'enhancement,bug'
36+
stale-pr-message: |
37+
This pull-request has not received any recent updates and will be closed soon.
38+
stale-pr-label: 'stale'
39+
close-pr-message: |
40+
This pull-request has automatically been closed due to inactivity.
41+
close-pr-label: 'closed for inactivity'

0 commit comments

Comments
 (0)