Skip to content

Commit da09e02

Browse files
authored
Merge pull request #1861 from grafana/ivanahuckova-patch-1
Create stale.yml
2 parents 62a292d + 43f8a8e commit da09e02

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/stale.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
permissions:
7+
issues: write
8+
pull-requests: 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+
operations-per-run: 750
18+
# start from the oldest issues/PRs when performing stale operations
19+
ascending: true
20+
days-before-issue-stale: 730
21+
days-before-issue-close: 60
22+
stale-issue-label: stale
23+
exempt-issue-labels: no stalebot,type/epic,type/bug
24+
stale-issue-message: >
25+
This issue has been automatically marked as stale because it has not had
26+
activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please
27+
feel free to leave a comment if you believe the issue is still relevant.
28+
Thank you for your contributions!
29+
close-issue-message: >
30+
This issue has been automatically closed because it has not had any further
31+
activity in the last 60 days. Thank you for your contributions!
32+
days-before-pr-stale: 60
33+
days-before-pr-close: 14
34+
stale-pr-label: stale
35+
exempt-pr-labels: no stalebot
36+
stale-pr-message: >
37+
This pull request has been automatically marked as stale because it has not had
38+
activity in the last 60 days. It will be closed in 2 weeks if no further activity occurs. Please
39+
feel free to give a status update or ping for review. Thank you for your contributions!
40+
close-pr-message: >
41+
This pull request has been automatically closed because it has not had any further
42+
activity in the last 2 weeks. Thank you for your contributions!

0 commit comments

Comments
 (0)