Skip to content

Close stale PRs

Close stale PRs #345

Workflow file for this run

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'