Close inactive issues #9
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: | |
# Run this workflow weekly on Friday at 00:00 UTC | |
# [cron](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) | |
schedule: | |
- cron: "0 0 * * 5" | |
jobs: | |
close-inactive-issues: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
# https://github.com/marketplace/actions/close-stale-issues | |
- uses: actions/stale@v5 | |
with: | |
days-before-issue-stale: 30 | |
days-before-issue-close: 10 | |
stale-issue-label: "inactive" | |
stale-issue-message: "This issue was labeled `inactive` because it has been open for 30 days with no activity." | |
close-issue-message: "This issue was closed because there has been no activity for 10 days since being labeled as `inactive`." | |
# do not mark PRs as stale/inactive | |
days-before-pr-stale: -1 | |
# do not close PRs | |
days-before-pr-close: -1 | |