Skip to content

Close Stale PRs

Close Stale PRs #2

Workflow file for this run

name: "Close Stale PRs"
on:
schedule:
- cron: '30 1 * * *' # every day at 1:30 AM
workflow_dispatch:
permissions:
pull-requests: write
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 35 # 5 working weeks should be ok
days-before-close: 14 # plus 2 weeks to act
stale-pr-label: 'stale'
stale-pr-message: 'This PR is stale because it has been open 35 days with no activity. Remove "stale" label or comment or this will be closed in 14 days.'
close-pr-message: 'This PR was closed because it has been stalled for 14 days with no activity.'