Skip to content

Commit d237127

Browse files
authored
ci(gh-workflows): add a stale workflow (#912)
1 parent a1b0f98 commit d237127

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 4 * * *'
5+
permissions:
6+
issues: write
7+
pull-requests: write
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
# Number of days of inactivity before a stale Issue or Pull Request is closed.
15+
# Set to -1 to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
16+
days-before-close: 14
17+
# Number of days of inactivity before an Issue or Pull Request becomes stale
18+
days-before-stale: 90
19+
exempt-issue-labels: no stalebot
20+
exempt-pr-labels: no stalebot
21+
operations-per-run: 100
22+
stale-issue-label: stale
23+
stale-pr-label: stale
24+
stale-pr-message: >
25+
This pull request has been automatically marked as stale because it has not had
26+
activity in the last 90 days. It will be closed in 2 weeks if no further activity occurs. Please
27+
feel free to give a status update now, ping for review, or re-open when it's ready.
28+
Thank you for your contributions!
29+
close-pr-message: >
30+
This pull request has been automatically closed because it has not had
31+
activity in the last 2 weeks. Please feel free to give a status update now, ping for review, or re-open when it's ready.
32+
Thank you for your contributions!

0 commit comments

Comments
 (0)