Stale Issues and PRs #11
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: | |
| # Run daily at 00:00 UTC | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Mark stale issues and PRs | |
| uses: actions/stale@v9 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Issues configuration | |
| stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.' | |
| close-issue-message: 'This issue was automatically closed due to inactivity. Please feel free to reopen if this is still relevant.' | |
| days-before-issue-stale: 60 | |
| days-before-issue-close: 7 | |
| stale-issue-label: 'stale' | |
| exempt-issue-labels: 'pinned,security,enhancement' | |
| # PRs configuration | |
| stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 7 days. Please rebase and update if you would like to continue working on this.' | |
| close-pr-message: 'This pull request was automatically closed due to inactivity. Please feel free to reopen or submit a new PR if this is still relevant.' | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 7 | |
| stale-pr-label: 'stale' | |
| exempt-pr-labels: 'pinned,security,work-in-progress' | |
| # General configuration | |
| operations-per-run: 30 | |
| remove-stale-when-updated: true | |
| ascending: true |