Skip to content

Close stale issues and PRs #99

Close stale issues and PRs

Close stale issues and PRs #99

---
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'
...