Skip to content

Commit 921d53e

Browse files
jaydelucatrask
andauthored
Add additional issue and pr automation (#14801)
Co-authored-by: Trask Stalnaker <[email protected]>
1 parent 5099c33 commit 921d53e

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

.github/workflows/issue-management-stale-action.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# hourly at minute 23
66
- cron: "23 * * * *"
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -18,19 +19,39 @@ jobs:
1819
steps:
1920
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2021
with:
21-
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
days-before-stale: 7
2323
days-before-close: 7
2424
only-labels: "needs author feedback"
2525
stale-issue-label: stale
2626
stale-issue-message: >
27-
This has been automatically marked as stale because it has been marked
28-
as needing author feedback and has not had any activity for 7 days.
29-
It will be closed automatically if there is no response from the author
30-
within 7 additional days from this comment.
27+
This issue has been labeled as stale due to lack of activity and needing author feedback.
28+
It will be automatically closed if there is no further activity over the next 7 days.
3129
stale-pr-label: stale
3230
stale-pr-message: >
33-
This has been automatically marked as stale because it has been marked
34-
as needing author feedback and has not had any activity for 7 days.
35-
It will be closed automatically if there is no response from the author
36-
within 7 additional days from this comment.
31+
This PR has been labeled as stale due to lack of activity and needing author feedback.
32+
It will be automatically closed if there is no further activity over the next 7 days.
33+
34+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
35+
with:
36+
days-before-stale: 365
37+
days-before-close: 0
38+
close-issue-label: stale
39+
close-issue-message: >
40+
Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog.
41+
Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time.
42+
days-before-pr-stale: -1
43+
days-before-pr-close: -1
44+
only-labels: "enhancement"
45+
exempt-issue-labels: "stale" # so that it won't close issues labeled as stale by "needs author feedback"
46+
47+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
48+
with:
49+
days-before-issue-stale: -1
50+
days-before-issue-close: -1
51+
days-before-pr-stale: 180
52+
days-before-pr-close: 14
53+
stale-pr-label: stale
54+
stale-pr-message: >
55+
This PR has been labeled as stale due to lack of activity.
56+
It will be automatically closed if there is no further activity over the next 14 days.
57+
exempt-draft-pr: false

0 commit comments

Comments
 (0)