Skip to content

Commit 6c962b9

Browse files
chore: add stale issue bot (#806)
1 parent 14b6c35 commit 6c962b9

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Close Stale Issues"
2+
3+
# Controls when the action will run.
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 */4 * * *"
8+
9+
jobs:
10+
cleanup:
11+
permissions:
12+
issues: write
13+
contents: read
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
name: Stale issue job
17+
steps:
18+
- uses: aws-actions/stale-issue-cleanup@v5
19+
with:
20+
# Setting messages to an empty string will cause the automation to skip
21+
# that category
22+
ancient-issue-message: This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
23+
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
24+
stale-pr-message: This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
25+
26+
# These labels are required
27+
stale-issue-label: closing-soon
28+
exempt-issue-labels: no-autoclose
29+
stale-pr-label: closing-soon
30+
exempt-pr-labels: no-autoclose
31+
response-requested-label: response-requested
32+
33+
# Don't set closed-for-staleness label to skip closing very old issues
34+
# regardless of label
35+
closed-for-staleness-label: closed-for-staleness
36+
37+
# Issue timing
38+
days-before-stale: 5
39+
days-before-close: 2
40+
days-before-ancient: 36500
41+
42+
# If you don't want to mark a issue as being ancient based on a
43+
# threshold of "upvotes", you can set this here. An "upvote" is
44+
# the total number of +1, heart, hooray, and rocket reactions
45+
# on an issue.
46+
minimum-upvotes-to-exempt: 5
47+
48+
repo-token: ${{ secrets.GITHUB_TOKEN }}
49+
loglevel: DEBUG
50+
# Set dry-run to true to not perform label or close actions.
51+
dry-run: false

0 commit comments

Comments
 (0)