Close stale PRs #296
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 PRs' | |
on: | |
schedule: | |
- cron: '17 1 * * *' | |
permissions: {} | |
jobs: | |
stale: | |
permissions: | |
contents: write # only for delete-branch option | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0 | |
with: | |
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity.' | |
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.' | |
close-pr-message: 'This PR was closed because it has been stalled for 40 days with no activity.' | |
days-before-issue-stale: 90 | |
days-before-pr-stale: 30 | |
days-before-issue-close: -1 | |
days-before-pr-close: 10 | |
delete-branch: true |