Close stale PRs #457
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 | |
permissions: | |
contents: write # only for delete-branch option | |
issues: write | |
pull-requests: write | |
on: | |
schedule: | |
- cron: '0 */6 * * *' # Runs every day at midnight | |
workflow_dispatch: {} | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-pr-message: 'This PR will be automatically closed as it has been stale for 4 days. Please comment if you feel this is still relevant.' | |
close-pr-message: 'This PR has been closed as it has been stale for 7 days. Please reopen if you feel this is still relevant.' | |
days-before-pr-stale: '4' | |
days-before-pr-close: '3' | |
stale-pr-label: 'stale' | |
exempt-pr-labels: 'do-not-close' |