Close stale issues #180
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' | |
| on: | |
| schedule: | |
| # Run daily at 1:00 AM UTC | |
| - cron: '0 1 * * *' | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| # Issues | |
| days-before-issue-stale: 4 | |
| days-before-issue-close: 0 # Close immediately after marking stale | |
| stale-issue-label: 'stale' | |
| stale-issue-message: > | |
| This issue has been automatically marked as stale because it has not had | |
| recent activity in the last 4 days. It will be closed automatically to keep | |
| the issue tracker organized. If you believe this issue is still relevant, | |
| please comment to reopen it. | |
| close-issue-message: > | |
| This issue has been automatically closed due to inactivity. If you need | |
| to revisit this, please feel free to reopen it or create a new issue with | |
| updated information. | |
| close-issue-reason: 'not_planned' | |
| # Don't mark as stale if these labels are present | |
| exempt-issue-labels: 'pinned,security,bug,enhancement,help wanted' | |
| # Pull Requests (disabled - only auto-close issues) | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 | |
| # Activity detection | |
| operations-per-run: 30 | |
| remove-stale-when-updated: true | |
| # Debug mode (set to true to see what would happen without actually doing it) | |
| debug-only: false |