|
| 1 | +name: "Comment on stale issues" |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "46 4 * * *" # run once per day |
| 6 | + |
| 7 | +jobs: |
| 8 | + cleanup: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + name: Stale issue job |
| 11 | + steps: |
| 12 | + - uses: aws-actions/stale-issue-cleanup@5650b49bcd757a078f6ca06c373d7807b773f9bc #v7.1.0 |
| 13 | + with: |
| 14 | + issue-types: issues # only look at issues (ignore pull-requests) |
| 15 | + |
| 16 | + # Setting messages to an empty string causes the automation to skip that category |
| 17 | + ancient-issue-message: "Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still experiencing this issue, could you leave a quick comment to let us know so we can prioritize it?" |
| 18 | + ancient-pr-message: "" |
| 19 | + stale-issue-message: "" |
| 20 | + stale-pr-message: "" |
| 21 | + |
| 22 | + # These labels are required |
| 23 | + stale-issue-label: awaiting-feedback # somewhat confusingly, this is also used for when labeling "ancient" issues |
| 24 | + exempt-issue-labels: kind/enhancement,kind/task,kind/epic,kind/engineering, awaiting-upstream # only run on kind/bug for now, ignore awaiting-upstream too. |
| 25 | + stale-pr-label: no-pr-activity # unused because we aren't processing PRs |
| 26 | + exempt-pr-labels: awaiting-approval # unused because we aren't processing PRs |
| 27 | + response-requested-label: response-requested # unused because we don't set a "stale-issue-message" above |
| 28 | + |
| 29 | + # Issue timing |
| 30 | + days-before-close: 10000 # this action lacks the option not to close, so just set this indefinitly far in the future |
| 31 | + days-before-ancient: 180 # 6 months |
| 32 | + |
| 33 | + # If you don't want to mark a issue as being ancient based on a |
| 34 | + # threshold of "upvotes", you can set this here. An "upvote" is |
| 35 | + # the total number of +1, heart, hooray, and rocket reactions |
| 36 | + # on an issue. |
| 37 | + minimum-upvotes-to-exempt: 2 |
| 38 | + |
| 39 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + loglevel: DEBUG |
| 41 | + # Set dry-run to true to not perform label or close actions. |
| 42 | + dry-run: true |
0 commit comments