Skip to content

Label and close stale issues #628

Label and close stale issues

Label and close stale issues #628

Workflow file for this run

---
name: Label and close stale issues
on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
workflow_dispatch:
permissions:
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # tag=v2.9.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # tag=v9.0.0
with:
days-before-stale: 28
days-before-close: 7
stale-issue-message: >-
This issue has been automatically marked as stale because it has been
inactive for 28 days. To reactivate the issue, simply post a comment
with the requested information to help us diagnose this issue. If this
issue remains inactive for another 7 days, it will be automatically
closed.
close-issue-message: >-
This issue has been automatically closed due to inactivity. If you are
still experiencing problems, please open a new issue.
stale-issue-label: "stale :skull:"
only-labels: "needs more info :thinking:"