• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: "Close stale issues"
2
3# Controls when the action will run.
4on:
5  schedule:
6    - cron: "*/60 * * * *"
7
8jobs:
9  cleanup:
10    runs-on: ubuntu-latest
11    name: Stale issue job
12    permissions:
13      issues: write
14      pull-requests: write
15    steps:
16    - uses: aws-actions/stale-issue-cleanup@v3
17      with:
18        # Setting messages to an empty string will cause the automation to skip
19        # that category
20        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.
21        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.
22        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.
23
24        # These labels are required
25        stale-issue-label: closing-soon
26        exempt-issue-label: automation-exempt
27        stale-pr-label: closing-soon
28        exempt-pr-label: pr/needs-review
29        response-requested-label: response-requested
30
31        # Don't set closed-for-staleness label to skip closing very old issues
32        # regardless of label
33        closed-for-staleness-label: closed-for-staleness
34
35        # Issue timing
36        days-before-stale: 2
37        days-before-close: 5
38        days-before-ancient: 36500
39
40        # If you don't want to mark a issue as being ancient based on a
41        # threshold of "upvotes", you can set this here. An "upvote" is
42        # the total number of +1, heart, hooray, and rocket reactions
43        # on an issue.
44        minimum-upvotes-to-exempt: 1
45
46        repo-token: ${{ secrets.GITHUB_TOKEN }}
47        loglevel: DEBUG
48        # Set dry-run to true to not perform label or close actions.
49        dry-run: false
50