Close stale issues and PRs #59
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: 'Close stale issues and PRs' | |
| on: | |
| schedule: | |
| - cron: '0 19 * * *' # Run daily at 7pm GMT | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: write # Required for delete-branch option | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| # Stale issues configuration | |
| days-before-issue-stale: 90 | |
| days-before-issue-close: 30 | |
| stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Please comment if you believe this issue should remain open.' | |
| stale-issue-label: 'stale' | |
| close-issue-message: 'This issue has been automatically closed due to inactivity. Please feel free to reopen if needed.' | |
| # Stale PRs configuration | |
| days-before-pr-stale: 90 | |
| days-before-pr-close: 30 | |
| stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.' | |
| stale-pr-label: 'stale' | |
| close-pr-message: 'This pull request has been automatically closed due to inactivity. Please feel free to reopen if needed.' | |
| # Exemptions | |
| # Note: Renovate PRs typically have the "dependencies" label which is also excluded | |
| exempt-pr-labels: 'pinned,dependencies' | |
| exempt-all-pr-assignees: false | |
| exempt-all-issue-assignees: false | |
| # Delete branch after closing stale PR | |
| delete-branch: true | |
| # Operations per run | |
| operations-per-run: 50 |