Skip to content

Commit 1a2ff3a

Browse files
committed
add stale bot
1 parent fba928f commit 1a2ff3a

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/stale.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 0 * * *'
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# https://github.com/marketplace/actions/close-stale-issues
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
debug-only: true
19+
operations-per-run: 500
20+
# oldest first https://github.com/marketplace/actions/close-stale-issues#ascending
21+
ascending: true
22+
days-before-issue-stale: 365
23+
days-before-issue-close: 30
24+
stale-issue-label: stale
25+
exempt-issue-labels: type:Epic, no stalebot #, v2-feedback, client-api-v2
26+
stale-issue-message: >
27+
This issue has been automatically marked as stale because it has not had
28+
activity in the last year. It will be closed in 30 days if no further activity occurs. Please
29+
feel free to leave a comment if you believe the issue is still relevant.
30+
Thank you for your contributions!
31+
close-issue-message: >
32+
This issue has been automatically closed because it has not had any further
33+
activity in the last 30 days. Thank you for your contributions!
34+
days-before-pr-stale: 30
35+
days-before-pr-close: 14
36+
stale-pr-label: stale
37+
exempt-pr-labels: no stalebot
38+
stale-pr-message: >
39+
This pull request has been automatically marked as stale because it has not had
40+
activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please
41+
feel free to give a status update or ping for review. Thank you for your contributions!
42+
close-pr-message: >
43+
This pull request has been automatically closed because it has not had any further
44+
activity in the last 2 weeks. Thank you for your contributions!

0 commit comments

Comments
 (0)