Skip to content

Close stale PRs

Close stale PRs #5

name: Close stale PRs
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-slim
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v10
with:
days-before-issue-stale: -1
days-before-issue-close: -1
days-before-pr-stale: 7
days-before-pr-close: 7
stale-pr-label: stale
stale-pr-message: >
This PR has been marked as stale because it has had no activity for 7 days.
Remove the stale label or comment to keep it open. It will be closed
automatically in 7 more days if no activity occurs.
close-pr-message: >
This PR was closed automatically because it has been stale for 14 days with
no activity.
exempt-draft-pr: true
operations-per-run: 30