Skip to content

Close stale issues and PRs #1245

Close stale issues and PRs

Close stale issues and PRs #1245

Workflow file for this run

name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
with:
days-before-stale: 60
days-before-close: 7
operations-per-run: 100
exempt-issue-labels: 'known-issue,enhancement'
exempt-pr-labels: 'wip,under-review'
stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Please comment or this will be closed in 7 days.'
close-issue-message: 'This issue was closed because it has been stalled for 21 days with no activity. Feel free to re-open if you are experiencing the issue again.'
stale-pr-message: 'This PR is stale because it has been open 14 days with no activity. Please comment or this will be closed in 7 days.'
close-pr-message: 'This PR was closed because it has been stalled for 21 days with no activity. Feel free to re-open if it is ready for review.'