44 schedule :
55 # hourly at minute 23
66 - cron : " 23 * * * *"
7+ workflow_dispatch :
78
89permissions :
910 contents : read
@@ -16,21 +17,52 @@ jobs:
1617 pull-requests : write # for actions/stale to close stale PRs
1718 runs-on : ubuntu-latest
1819 steps :
19- - uses : actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
20+ # Action #1: Handle issues/PRs awaiting author feedback
21+ # - After 7 days inactive: Adds "stale" label + warning comment
22+ # - After 7 more days inactive: Closes
23+ - uses : actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
2024 with :
21- repo-token : ${{ secrets.GITHUB_TOKEN }}
25+ only-labels : " needs author feedback "
2226 days-before-stale : 7
2327 days-before-close : 7
24- only-labels : " needs author feedback"
2528 stale-issue-label : stale
2629 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.
30+ This issue has been labeled as stale due to lack of activity and needing author feedback.
31+ It will be automatically closed if there is no further activity over the next 7 days.
32+ stale-pr-label : stale
33+ stale-pr-message : >
34+ This PR has been labeled as stale due to lack of activity and needing author feedback.
35+ It will be automatically closed if there is no further activity over the next 7 days.
36+
37+ # Action #2: Close old enhancement requests
38+ # - Targets: Issues with "enhancement" label (but NOT "needs author feedback")
39+ # - After 365 days inactive: Adds "stale" label + closes immediately (no warning period)
40+ # - Skips: Issues with "needs author feedback" to avoid conflicts with Action #1
41+ - uses : actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
42+ with :
43+ only-labels : " enhancement"
44+ # Skip issues that need author feedback (handled by the first action with 7+7 day policy)
45+ exempt-issue-labels : " needs author feedback"
46+ days-before-pr-stale : -1
47+ days-before-pr-close : -1
48+ days-before-issue-stale : 365
49+ days-before-issue-close : 0
50+ stale-issue-label : stale
51+ close-issue-message : >
52+ Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog.
53+ Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time.
54+
55+ # Action #3: Handle stale PRs
56+ # - After 180 days inactive: Adds "stale" label + warning comment
57+ # - After 14 more days inactive: Closes
58+ - uses : actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
59+ with :
60+ days-before-issue-stale : -1
61+ days-before-issue-close : -1
62+ days-before-pr-stale : 90
63+ days-before-pr-close : 14
3164 stale-pr-label : stale
3265 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.
66+ This PR has been labeled as stale due to lack of activity.
67+ It will be automatically closed if there is no further activity over the next 14 days.
68+ exempt-draft-pr : false
0 commit comments