• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: "Close stale issues"
2
3# Controls when the action will run.
4on:
5  schedule:
6  - cron: "0 0/3 * * *"
7
8jobs:
9  cleanup:
10    name: Stale issue job
11    runs-on: ubuntu-latest
12    permissions:
13      issues: write
14      pull-requests: write
15    steps:
16    - uses: aws-actions/stale-issue-cleanup@v4
17      with:
18        # Setting messages to an empty string will cause the automation to skip
19        # that category
20        ancient-issue-message: This is a very old issue that is probably not getting as much
21          attention as it deserves. We encourage you to check if this is still an issue in
22          the latest release and if you find that this is still a problem, please feel free
23          to provide a comment or open a new issue.
24        stale-issue-message: It looks like this issue has not been active for more than five days.
25          In the absence of more information, we will be closing this issue soon. If you find
26          that this is still a problem, please add a comment to prevent automatic closure, or
27          if the issue is already closed please feel free to reopen it.
28        stale-pr-message: It looks like this PR has not been active for more than five days. In
29          the absence of more information, we will be closing this PR soon. Please add a
30          comment to prevent automatic closure, or if the PR is already closed please feel
31          free to open a new one.
32
33        # These labels are required
34        stale-issue-label: closing-soon
35        exempt-issue-labels: no-auto-closure, help wanted
36        stale-pr-label: closing-soon
37        exempt-pr-labels: no-auto-closure
38        response-requested-label: response-requested
39
40        # Don't set closed-for-staleness label to skip closing very old issues
41        # regardless of label
42        closed-for-staleness-label: closed-for-staleness
43
44        # Issue timing
45        days-before-stale: 10
46        days-before-close: 4
47        days-before-ancient: 36500
48
49        # If you don't want to mark a issue as being ancient based on a
50        # threshold of "upvotes", you can set this here. An "upvote" is
51        # the total number of +1, heart, hooray, and rocket reactions
52        # on an issue.
53        minimum-upvotes-to-exempt: 1
54
55        repo-token: ${{ secrets.GITHUB_TOKEN }}
56        loglevel: DEBUG
57        # Set dry-run to true to not perform label or close actions.
58        #dry-run: true
59
60