⏳ Close stale issues and PRs #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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.' |