Skip to content

Commit 487298f

Browse files
authored
chore(ci): revisit stale issues automation (#1341)
* chore: updated stale-issues workflow * chore: removed stalebot config * chore: added action to allowlist * docs: added note to Maintainers doc * docs: fixed wording in comments * docs: fixed wording in comments
1 parent 5af51d3 commit 487298f

File tree

4 files changed

+27
-51
lines changed

4 files changed

+27
-51
lines changed

Diff for: .github/stale.yml

-16
This file was deleted.

Diff for: .github/workflows/on-workflows-push-pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
# Trusted GitHub Actions and/or organizations
2222
allowlist: |
2323
aws-actions/
24+
actions/stale
2425
actions/checkout
2526
actions/github-script
2627
actions/setup-node

Diff for: .github/workflows/stale-issues.yml

+24-35
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
11
name: "Close stale issues"
22

3-
# Controls when the action will run.
4-
53
on:
64
schedule:
75
- cron: "0 0 * * *"
86

97
jobs:
10-
cleanup:
8+
check-issues:
119
runs-on: ubuntu-latest
12-
name: Stale issue job
10+
permissions:
11+
issues: write
1312
steps:
14-
- uses: aws-actions/stale-issue-cleanup@e1cf8a5d54b4ff316c76f5356079d3a8df84137e
13+
- uses: actions/stale@v7
1514
with:
16-
# Setting messages to an empty string will cause the automation to skip
17-
# that category
18-
ancient-issue-message: Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
19-
stale-issue-message: This issue has not received a response in 2 weeks. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
20-
stale-pr-message: This PR has not received a response in 2 weeks. If you still think there is a problem, please leave a comment to avoid the PR from automatically closing.
21-
# These labels are required
22-
stale-issue-label: closing-soon
23-
exempt-issue-label: no-autoclose
24-
stale-pr-label: closing-soon
25-
exempt-pr-label: pr/needs-review
26-
response-requested-label: response-requested
27-
28-
# Don't set closed-for-staleness label to skip closing very old issues
29-
# regardless of label
30-
closed-for-staleness-label: closed-for-staleness
31-
32-
# Issue timing
33-
days-before-stale: 14
34-
days-before-close: 7
35-
days-before-ancient: 365
36-
37-
# If you don't want to mark a issue as being ancient based on a
38-
# threshold of "upvotes", you can set this here. An "upvote" is
39-
# the total number of +1, heart, hooray, and rocket reactions
40-
# on an issue.
41-
minimum-upvotes-to-exempt: 5
42-
4315
repo-token: ${{ secrets.GITHUB_TOKEN }}
44-
loglevel: DEBUG
45-
# Set dry-run to true to not perform label or close actions.
46-
# dry-run: true
16+
stale-issue-message: "This issue has not received a response in 2 weeks. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing."
17+
close-issue-message: "Greetings! We are closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or reopen the issue."
18+
# Label applied or removed when an issue becomes stale
19+
stale-issue-label: status/pending-close-response-required
20+
remove-stale-when-updated: true
21+
# Label and close type when a stale issue is finally closed
22+
close-issue-label: status/rejected
23+
close-issue-reason: not_planned
24+
# Exempt any issue that hasn't been triaged yet, or that is clearly labeled
25+
exempt-issue-labels: triage,status/confirmed,status/blocked,status/on-hold,status/completed
26+
# Include only issues where any of these labels are present (aka only issues that need more info from the customer)
27+
# that are either under discussion, but no info/answer has been provided in 2 weeks, or that were already marked
28+
# as stale
29+
any-of-issue-labels: need-more-information,status/discussing,status/pending-close-response-required
30+
# Settings specific to issues
31+
days-before-issue-stale: 14
32+
days-before-issue-close: 7
33+
# Set to ignore PRs
34+
days-before-pr-stale: -1
35+
days-before-pr-close: -1

Diff for: MAINTAINERS.md

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ In other cases, you may have constrained capacity. Use `help=wanted` label when
268268

269269
When in doubt, use `need-more-information` or `need-customer-feedback` labels to signal more context and feedback are necessary before proceeding. You can also use `status/on-hold` label when you expect it might take a while to gather enough information before you can decide.
270270

271+
Note that issues marked as `need-more-information` and `status/discussing` will be automatically closed after 3 weeks of inactivity.
272+
271273
### Crediting contributions
272274

273275
We credit all contributions as part of each [release note](https://github.com/awslabs/aws-lambda-powertools-typescript/releases) as an automated process. If you find contributors are missing from the release note you're producing, please add them manually.

0 commit comments

Comments
 (0)