Skip to content

Commit d492c96

Browse files
authored
new action for stale issue cleanup (#111)
* new action for stale issue cleanup * changed action and templates
1 parent ec09fba commit d492c96

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

.github/ISSUE_TEMPLATE/---bug-report.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ assignees: ''
99

1010
Confirm by changing [ ] to [x] below to ensure that it's a bug:
1111
- [ ] I've searched for [previous similar issues](https://github.com/aws/aws-iot-device-sdk-cpp-v2/issues/) and didn't find any solution
12+
13+
**Known Issue**
14+
- [ ] I'm using ATS data type endpoint: the endpoint should look like `<prefix>-ats.iot.<region>.amazonaws.com`
1215

1316
**Describe the bug**
1417
A clear and concise description of what the bug is.

.github/ISSUE_TEMPLATE/---questions-help.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ assignees: ''
1010
Confirm by changing [ ] to [x] below:
1111
- [ ] I've searched for [previous similar issues](https://github.com/aws/aws-iot-device-sdk-cpp-v2/issues/) and didn't find any solution
1212

13+
**Known Issue**
14+
- [ ] I'm using ATS data type endpoint: the endpoint should look like `<prefix>-ats.iot.<region>.amazonaws.com`
15+
1316
**Platform/OS/Device**
1417
What are you running the sdk on?
1518

.github/workflows/stale_issue.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "Close stale issues"
2+
3+
# Controls when the action will run.
4+
on:
5+
schedule:
6+
- cron: "*/60 * * * *"
7+
8+
jobs:
9+
cleanup:
10+
runs-on: ubuntu-latest
11+
name: Stale issue job
12+
steps:
13+
- uses: aws-actions/stale-issue-cleanup@v3
14+
with:
15+
# Setting messages to an empty string will cause the automation to skip
16+
# that category
17+
ancient-issue-message: Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. 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 open a new one.
18+
stale-issue-message: Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
19+
stale-pr-message: Greetings! It looks like this PR hasn’t been active in longer than a week, add a comment or an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
20+
21+
# These labels are required
22+
stale-issue-label: closing-soon
23+
exempt-issue-label: investigating
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: 15
34+
days-before-close: 3
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: 1
42+
43+
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

0 commit comments

Comments
 (0)