Close inactive issues #103
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 inactive issues | |
on: | |
schedule: | |
- cron: "30 1 * * *" | |
permissions: | |
contents: read | |
jobs: | |
close-issues: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | |
with: | |
stale-issue-message: 'This issue has been marked as stale because it has been open for 8 weeks with no activity. Please remove the stale label or comment or this issue will be closed in 1 week.' | |
close-issue-message: 'This issue was closed because it has been inactive for 2 months with no activity.' | |
stale-pr-message: 'This pull request has been marked as stale because it has been open for 13 weeks with no activity. Please remove the stale label or comment or this pull request will be closed in 1 week.' | |
close-pr-message: 'This pull request was closed because it has been inactive for 6 months with no activity.' | |
days-before-issue-stale: 56 | |
days-before-issue-close: 7 | |
days-before-pr-stale: 91 | |
days-before-pr-close: 7 |