Close Stale Issues #10
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 weekly on Mondays at 00:00 UTC | |
| - cron: '0 0 * * 1' | |
| workflow_dispatch: # Allow manual trigger for testing | |
| permissions: | |
| issues: write | |
| jobs: | |
| # ============================================================================ | |
| # JOB 1: Handle QUESTIONS (30 + 7 = 37 days total) | |
| # Quick turnaround for questions that are usually already answered | |
| # ============================================================================ | |
| stale-questions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| # Only process questions | |
| only-issue-labels: 'question' | |
| # Exempt questions that need more info from user | |
| exempt-issue-labels: 'needs-info' | |
| # Aggressive timeline for questions | |
| days-before-stale: 30 # Mark stale after 30 days | |
| days-before-close: 7 # Close 7 days after stale (total: 37 days) | |
| stale-issue-label: 'stale' | |
| stale-issue-message: | | |
| This question has been inactive for 30 days and will be automatically closed in 7 days if no further activity occurs. | |
| If you still need help, please add a comment to keep this open. Thank you! 🙏 | |
| close-issue-message: | | |
| This question was automatically closed due to inactivity. | |
| If you still need help, feel free to reopen this issue or create a new one. Thank you! 🙏 | |
| operations-per-run: 30 | |
| # ============================================================================ | |
| # JOB 2: Handle OTHER ISSUES (45 + 7 = 52 days total) | |
| # Faster cleanup for bugs/features while still being reasonable | |
| # ============================================================================ | |
| stale-other-issues: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| # ONLY exempt issues that are actively being worked on or need action | |
| exempt-issue-labels: 'critical,in-progress,confirmed,needs-info,question' | |
| # Explanation of exempt labels: | |
| # - critical: High priority, must keep open | |
| # - in-progress: Actively being worked on | |
| # - confirmed: Bug confirmed, planning to fix | |
| # - needs-info: Waiting for user response | |
| # - question: Handled by separate job above | |
| # Shorter timeline for faster cleanup | |
| days-before-stale: 45 # Mark stale after 45 days | |
| days-before-close: 7 # Close 7 days after stale (total: 52 days) | |
| stale-issue-label: 'stale' | |
| stale-issue-message: | | |
| This issue has been inactive for 45 days and will be automatically closed in 7 days if no further activity occurs. | |
| If this is still relevant to you, please add a comment to keep it open. Thank you! 🙏 | |
| close-issue-message: | | |
| This issue was automatically closed due to inactivity. | |
| If you believe this is still relevant, feel free to reopen this issue or create a new one. Thank you! 🙏 | |
| operations-per-run: 30 |