Skip to content

Commit 62332c0

Browse files
authored
chore(gh): add stale workflow (#452)
Adds stale item workflow. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent c7a4182 commit 62332c0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/stale.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Manage Stale Items
3+
4+
on:
5+
schedule:
6+
- cron: 00 00 * * *
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
16+
with:
17+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
18+
days-before-stale: 60
19+
days-before-close: 30
20+
exempt-issue-labels: 'needs-triage'
21+
exempt-pr-labels: 'needs-review'
22+
remove-stale-when-updated: true
23+
delete-branch: false
24+
stale-issue-label: stale
25+
stale-issue-message: >
26+
'Marking this issue as stale due to inactivity. This helps us focus
27+
on the active issues. If this issue receives no comments in the next
28+
30 days it will automatically be closed.
29+
30+
31+
If this issue was automatically closed and you feel this issue
32+
should be reopened, we encourage creating a new issue linking back
33+
to this one for added context.
34+
35+
Thank you!'
36+
stale-pr-label: stale
37+
stale-pr-message: >
38+
'Marking this pull request as stale due to inactivity. This helps us
39+
focus on the active pull requests. If this pull request receives no
40+
comments in the next 30 days it will automatically be closed.
41+
42+
If this pull request was automatically closed and you feel this pull
43+
request should be reopened, we encourage creating a new pull request
44+
linking back to this one for added context.
45+
46+
Thank you!'

0 commit comments

Comments
 (0)