Close stale issues and PRs #93
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
--- | |
jobs: | |
stale: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/stale@v9' | |
with: | |
days-before-close: '15' | |
days-before-stale: '45' | |
delete-branch: 'true' | |
exempt-issue-labels: 'stale-exempt' | |
exempt-pr-labels: 'stale-exempt' | |
operations-per-run: '50' # This is to avoid Github API rate limiting. | |
stale-issue-message: > | |
This issue is stale because it has been open 45 days with no activity. | |
Remove the `stale` label or comment - | |
otherwise this will be closed in 15 days. | |
stale-pr-message: > | |
This issue is stale because it has been open 45 days with no activity. | |
Remove the `stale` label, comment or push a commit - | |
otherwise this will be closed in 15 days. | |
name: 'Close stale issues and PRs' | |
'on': | |
schedule: | |
- cron: '0 0 * * *' # Cron scheduler syntax. | |
permissions: | |
contents: 'write' | |
issues: 'write' | |
pull-requests: 'write' | |
... |