Skip to content

Commit 4594625

Browse files
authored
Merge pull request #746 from aws/stale-action
stale issue clean up action
2 parents 5b6d0f3 + 8ddc531 commit 4594625

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/stale_issue.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Close stale issues"
2+
3+
# Controls when the action will run.
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
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: We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.
18+
stale-issue-message: This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.
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: no-autoclose
24+
stale-pr-label: no-pr-activity
25+
exempt-pr-label: awaiting-approval
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: 7
34+
days-before-close: 4
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.

0 commit comments

Comments
 (0)