Skip to content

Commit 4b57adb

Browse files
authored
Merge pull request #84 from grafana/stalebot
add stalebot for issues
2 parents 1b2dd2e + b9a66ca commit 4b57adb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/stale.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Close stale issues'
2+
on:
3+
schedule:
4+
# run at 1:30 every day
5+
- cron: '30 1 * * *'
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
# start from the oldest issues when performing stale operations
18+
ascending: true
19+
days-before-issue-stale: 365
20+
days-before-issue-close: 30
21+
stale-issue-label: stale
22+
exempt-issue-labels: no stalebot,type/epic
23+
stale-issue-message: >
24+
This issue has been automatically marked as stale because it has not had
25+
activity in the last year. It will be closed in 30 days if no further activity occurs. Please
26+
feel free to leave a comment if you believe the issue is still relevant.
27+
Thank you for your contributions!
28+
close-issue-message: >
29+
This issue has been automatically closed because it has not had any further
30+
activity in the last 30 days. Thank you for your contributions!

0 commit comments

Comments
 (0)