Close stale issues #302
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Close stale issues | |
on: | |
schedule: # Run 5 minutes after midnight daily. | |
- cron: "5 0 * * *" | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e | |
with: | |
start-date: "2022-03-01T00:00:00Z" # ISO 8601 or RFC 2822 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
days-before-stale: 180 | |
days-before-close: 14 | |
stale-issue-label: stale | |
close-issue-message: > | |
This issue has been automatically closed due to lack of activity. | |
If you feel this issue is still important, please reopen it and leave a comment. | |
exempt-issue-labels: "breaking-change,Pri0,:watch: Not Triaged,:checkered_flag: Release: .NET 7,:checkered_flag: Release: .NET 8" | |
operations-per-run: 50 | |
debug-only: true |