Skip to content

Commit 12fa783

Browse files
committed
[chore] add stale action
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
1 parent ea781ec commit 12fa783

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Close stale issues and pull requests"
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "12 5 * * *" # arbitrary time not to DDOS GitHub
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-24.04
10+
env:
11+
GH_TOKEN: ${{ github.token }}
12+
steps:
13+
- name: Check rate_limit before
14+
run: gh api /rate_limit
15+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 14 days.'
19+
close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
20+
close-issue-message: 'This issue has been closed as inactive because it has been stale for 120 days with no activity.'
21+
close-issue-label: 'closed as inactive'
22+
days-before-pr-stale: 14
23+
days-before-issue-stale: 60
24+
days-before-pr-close: 14
25+
days-before-issue-close: 60
26+
exempt-issue-labels: 'never stale,renovatebot'
27+
ascending: true
28+
operations-per-run: 6000
29+
exempt-pr-labels: 'never stale,renovatebot'
30+
- name: Check rate_limit after
31+
run: gh api /rate_limit

0 commit comments

Comments
 (0)