Skip to content

⏳ Close stale issues and PRs #35

⏳ Close stale issues and PRs

⏳ Close stale issues and PRs #35

Workflow file for this run

---
name: '⏳ Close stale issues and PRs'
on:
schedule: [cron: '30 1 * * *'] # Every day 1:30 AM UTC
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# Common config
days-before-stale: 30
days-before-close: 7
# Pull requests config
exempt-pr-labels: 'CI: Prevent stale'
stale-pr-label: 'Status: Stale'
close-pr-label: 'Status: Closed as Inactive'
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove `Status: Stale` label or comment or this will be closed in 7 days.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
# Issues config
exempt-issue-labels: 'CI: Prevent stale'
stale-issue-label: 'Status: Stale'
close-issue-label: 'Status: Closed as Inactive'
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove `Status: Stale` label or comment or this will be closed in 7 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'