Stale Issues and PRs #179
This file contains hidden or 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: Stale Issues and PRs | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs daily at 00:00 UTC | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Clean up stale cache | |
| run: rm -rf ./_state | |
| - name: Mark stale issues and PRs | |
| uses: actions/stale@v9 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Issue configuration: Close directly after 14 days inactivity (no pre-mark) | |
| # > 14 days inactive → close immediately | |
| close-issue-message: 'This issue has been closed due to inactivity for 14 days. Feel free to reopen if there are updates.' | |
| days-before-issue-stale: 14 | |
| days-before-issue-close: 0 | |
| # PR configuration: Close directly after 14 days inactivity (no pre-mark) | |
| # > 14 days inactive → close immediately | |
| close-pr-message: 'This PR has been closed due to inactivity for 14 days. Feel free to reopen if there are updates.' | |
| days-before-pr-stale: 14 | |
| days-before-pr-close: 0 | |
| # Exempt items with the 'exempt-stale' label | |
| exempt-issue-labels: 'exempt-stale' | |
| exempt-pr-labels: 'exempt-stale' | |
| # Other configurations | |
| remove-stale-when-updated: true | |
| stale-issue-label: 'stale' | |
| stale-pr-label: 'stale' | |
| operations-per-run: 300 | |
| ascending: true |