Skip to content

Commit 06fdc5d

Browse files
committed
Add stale issue cleanup action
1 parent c8db8d7 commit 06fdc5d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/stale_issues.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 recieved attention in 3 years. 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 recieved 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+
20+
# These labels are required
21+
stale-issue-label: closing-soon
22+
exempt-issue-label: no-autoclose
23+
stale-pr-label: no-pr-activity
24+
exempt-pr-label: awaiting-approval
25+
response-requested-label: response-requested
26+
27+
# Don't set closed-for-staleness label to skip closing very old issues
28+
# regardless of label
29+
closed-for-staleness-label: closed-for-staleness
30+
31+
# Issue timing
32+
days-before-stale: 7
33+
days-before-close: 4
34+
days-before-ancient: 1095
35+
36+
# If you don't want to mark a issue as being ancient based on a
37+
# threshold of "upvotes", you can set this here. An "upvote" is
38+
# the total number of +1, heart, hooray, and rocket reactions
39+
# on an issue.
40+
minimum-upvotes-to-exempt: 10
41+
42+
repo-token: ${{ secrets.GITHUB_TOKEN }}
43+
loglevel: DEBUG
44+
# Set dry-run to true to not perform label or close actions.
45+
# dry-run: true

0 commit comments

Comments
 (0)