Skip to content

Commit e42560d

Browse files
committed
chore(repo): update stale bot configuration (#23255)
(cherry picked from commit dc20a3b)
1 parent 84399c8 commit e42560d

File tree

1 file changed

+39
-106
lines changed

1 file changed

+39
-106
lines changed

.github/workflows/schedule-stale.yml

Lines changed: 39 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
name: Stale Bot workflow
66

7-
permissions: {}
7+
permissions: { }
88

99
jobs:
1010
build:
@@ -16,163 +16,96 @@ jobs:
1616
name: stale
1717
runs-on: ubuntu-latest
1818
steps:
19+
# This handles issues that need more info
1920
- name: stale-more-info-needed
2021
id: stale-more-info-needed
21-
uses: actions/stale@v3.0.13
22+
uses: actions/stale@v9.0.0
2223
with:
2324
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
days-before-stale: 14
25-
days-before-close: 14
25+
days-before-stale: 7
26+
days-before-close: 21
2627
stale-issue-label: "stale"
2728
operations-per-run: 300
2829
remove-stale-when-updated: true
2930
only-labels: "blocked: more info needed"
3031
stale-issue-message: |
31-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
32-
If we missed this issue please reply to keep it active.
32+
This issue has been automatically marked as stale because more information has not been provided within 7 days.
33+
It will be closed in 21 days if no information is provided.
34+
If information has been provided, please reply to keep it active.
3335
Thanks for being a part of the Nx community! 🙏
3436
37+
# This handles PRs that need to be rebased
3538
- name: stale-needs-rebase
3639
id: stale-needs-rebase
37-
uses: actions/stale@v3.0.13
40+
uses: actions/stale@v9.0.0
3841
with:
3942
repo-token: ${{ secrets.GITHUB_TOKEN }}
40-
days-before-stale: 14
41-
days-before-close: 14
43+
days-before-stale: 7
44+
days-before-close: 21
4245
stale-issue-label: "stale"
4346
operations-per-run: 300
4447
remove-stale-when-updated: true
4548
only-labels: "blocked: needs rebased"
4649
stale-issue-message: |
47-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
48-
If we missed this issue please reply to keep it active.
50+
This PR has been automatically marked as stale because it has not been rebased in 7 days.
51+
It will be closed in 21 days if it is not rebased.
52+
If the PR has been rebased or you are working on rebasing it, please reply to keep it active.
53+
If you do not have time, please let us know and we can rebase it.
4954
Thanks for being a part of the Nx community! 🙏
5055
56+
# This handles issues that do not have a repro
5157
- name: stale-repro-needed
5258
id: stale-repro-needed
53-
uses: actions/stale@v3.0.13
59+
uses: actions/stale@v9.0.0
5460
with:
5561
repo-token: ${{ secrets.GITHUB_TOKEN }}
56-
days-before-stale: 14
57-
days-before-close: 14
62+
days-before-stale: 7
63+
days-before-close: 21
5864
stale-issue-label: "stale"
5965
operations-per-run: 300
6066
remove-stale-when-updated: true
6167
only-labels: "blocked: repro needed"
6268
stale-issue-message: |
63-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
64-
If we missed this issue please reply to keep it active.
69+
This issue has been automatically marked as stale because no reproduction was provided within 7 days.
70+
Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue.
71+
Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues.
72+
This issue will be closed in 21 days if a reproduction is not provided.
73+
If a reproduction has been provided, please reply to keep it active.
6574
Thanks for being a part of the Nx community! 🙏
6675
6776
- name: stale-retry-with-latest
6877
id: stale-retry-with-latest
69-
uses: actions/stale@v3.0.13
78+
uses: actions/stale@v9.0.0
7079
with:
7180
repo-token: ${{ secrets.GITHUB_TOKEN }}
72-
days-before-stale: 14
73-
days-before-close: 14
81+
days-before-stale: 7
82+
days-before-close: 21
7483
stale-issue-label: "stale"
7584
operations-per-run: 300
7685
remove-stale-when-updated: true
7786
only-labels: "blocked: retry with latest"
7887
stale-issue-message: |
79-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
80-
If we missed this issue please reply to keep it active.
88+
This issue has been automatically marked as stale because no results of retrying on the latest version of Nx was provided within 7 days.
89+
It will be closed in 21 days if no results are provided.
90+
If the issue is still present, please reply to keep it active.
91+
If the issue was not present, please close this issue.
8192
Thanks for being a part of the Nx community! 🙏
8293
8394
95+
# This handles issues are really old and were made with a previous major
8496
- name: stale-bug
8597
id: stale-bug
86-
uses: actions/stale@v3.0.13
98+
uses: actions/stale@v9.0.0
8799
with:
88100
repo-token: ${{ secrets.GITHUB_TOKEN }}
89101
days-before-stale: 180
90-
days-before-close: 14
102+
days-before-close: 21
91103
stale-issue-label: "stale"
92104
operations-per-run: 300
93105
remove-stale-when-updated: true
94-
only-labels: "type: bug"
95106
stale-issue-message: |
96-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
97-
If we missed this issue please reply to keep it active.
98-
Thanks for being a part of the Nx community! 🙏
99-
100-
- name: stale-cleanup
101-
id: stale-cleanup
102-
uses: actions/[email protected]
103-
with:
104-
repo-token: ${{ secrets.GITHUB_TOKEN }}
105-
days-before-stale: 180
106-
days-before-close: 14
107-
stale-issue-label: "stale"
108-
operations-per-run: 300
109-
remove-stale-when-updated: true
110-
only-labels: "type: cleanup"
111-
stale-issue-message: |
112-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
113-
If we missed this issue please reply to keep it active.
114-
Thanks for being a part of the Nx community! 🙏
115-
116-
- name: stale-docs
117-
id: stale-docs
118-
uses: actions/[email protected]
119-
with:
120-
repo-token: ${{ secrets.GITHUB_TOKEN }}
121-
days-before-stale: 180
122-
days-before-close: 14
123-
stale-issue-label: "stale"
124-
operations-per-run: 300
125-
remove-stale-when-updated: true
126-
only-labels: "type: docs"
127-
stale-issue-message: |
128-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
129-
If we missed this issue please reply to keep it active.
130-
Thanks for being a part of the Nx community! 🙏
131-
132-
- name: stale-enhancement
133-
id: stale-enhancement
134-
uses: actions/[email protected]
135-
with:
136-
repo-token: ${{ secrets.GITHUB_TOKEN }}
137-
days-before-stale: 250
138-
days-before-close: 14
139-
stale-issue-label: "stale"
140-
operations-per-run: 300
141-
remove-stale-when-updated: true
142-
only-labels: "type: enhancement"
143-
stale-issue-message: |
144-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
145-
If we missed this issue please reply to keep it active.
146-
Thanks for being a part of the Nx community! 🙏
147-
148-
- name: stale-feature
149-
id: stale-feature
150-
uses: actions/[email protected]
151-
with:
152-
repo-token: ${{ secrets.GITHUB_TOKEN }}
153-
days-before-stale: 250
154-
days-before-close: 14
155-
stale-issue-label: "stale"
156-
operations-per-run: 300
157-
remove-stale-when-updated: true
158-
only-labels: "type: feature"
159-
stale-issue-message: |
160-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
161-
If we missed this issue please reply to keep it active.
162-
Thanks for being a part of the Nx community! 🙏
163-
164-
- name: stale-question
165-
id: stale-question
166-
uses: actions/[email protected]
167-
with:
168-
repo-token: ${{ secrets.GITHUB_TOKEN }}
169-
days-before-stale: 45
170-
days-before-close: 14
171-
stale-issue-label: "stale"
172-
operations-per-run: 300
173-
remove-stale-when-updated: true
174-
only-labels: "type: question / discussion"
175-
stale-issue-message: |
176-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
177-
If we missed this issue please reply to keep it active.
107+
This issue has been automatically marked as stale because it hasn't had any activity for 6 months.
108+
Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore.
109+
If at this point, this is still an issue, please respond with updated information.
110+
It will be closed in 21 days if no further activity occurs.
178111
Thanks for being a part of the Nx community! 🙏

0 commit comments

Comments
 (0)