@@ -13,15 +13,19 @@ jobs:
1313 stale :
1414 permissions :
1515 contents : read
16+ actions : write # because actions/stale deletes its old cache before saving new one
1617 issues : write # for actions/stale to close stale issues
1718 pull-requests : write # for actions/stale to close stale PRs
1819 runs-on : ubuntu-latest
1920 steps :
21+ # Action #1: Handle issues/PRs awaiting author feedback
22+ # - After 7 days inactive: Adds "stale" label + warning comment
23+ # - After 7 more days inactive: Closes
2024 - uses : actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2125 with :
26+ only-labels : " needs author feedback"
2227 days-before-stale : 7
2328 days-before-close : 7
24- only-labels : " needs author feedback"
2529 stale-issue-label : stale
2630 stale-issue-message : >
2731 This issue has been labeled as stale due to lack of activity and needing author feedback.
@@ -30,20 +34,30 @@ jobs:
3034 stale-pr-message : >
3135 This PR has been labeled as stale due to lack of activity and needing author feedback.
3236 It will be automatically closed if there is no further activity over the next 7 days.
37+ operations-per-run : 1000
3338
39+ # Action #2: Close old enhancement requests
40+ # - Targets: Issues with "enhancement" label (but NOT "needs author feedback")
41+ # - After 365 days inactive: Adds "stale" label + closes immediately (no warning period)
42+ # - Skips: Issues with "needs author feedback" to avoid conflicts with Action #1
3443 - uses : actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
3544 with :
45+ only-labels : " enhancement"
46+ # Skip issues that need author feedback (handled by the first action with 7+7 day policy)
47+ exempt-issue-labels : " needs author feedback"
48+ days-before-pr-stale : -1
49+ days-before-pr-close : -1
3650 days-before-stale : 365
3751 days-before-close : 0
3852 close-issue-label : stale
3953 close-issue-message : >
4054 Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog.
4155 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"
56+ operations-per-run : 1000
4657
58+ # Action #3: Handle stale PRs
59+ # - After 180 days inactive: Adds "stale" label + warning comment
60+ # - After 14 more days inactive: Closes
4761 - uses : actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
4862 with :
4963 days-before-issue-stale : -1
5569 This PR has been labeled as stale due to lack of activity.
5670 It will be automatically closed if there is no further activity over the next 14 days.
5771 exempt-draft-pr : false
72+ operations-per-run : 1000
0 commit comments