Stale Issues & PRs #73
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 & PRs | |
| on: | |
| schedule: | |
| # Run daily at 00:00 UTC (07:00 Bangkok time) | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| name: Mark Stale Items | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Stale issues and PRs | |
| uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Issue settings | |
| stale-issue-message: | | |
| π This issue has been automatically marked as stale because it has not had recent activity. | |
| It will be closed in 14 days if no further activity occurs. | |
| If this issue is still relevant, please comment or update it to keep it open. | |
| Thank you for your contributions! | |
| stale-issue-label: 'stale' | |
| days-before-issue-stale: 60 | |
| days-before-issue-close: 14 | |
| exempt-issue-labels: 'pinned,security,critical,in-progress' | |
| # PR settings | |
| stale-pr-message: | | |
| π This pull request has been automatically marked as stale because it has not had recent activity. | |
| It will be closed in 14 days if no further activity occurs. | |
| If this PR is still being worked on, please update it or leave a comment. | |
| Thank you for your contributions! | |
| stale-pr-label: 'stale' | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 14 | |
| exempt-pr-labels: 'pinned,security,work-in-progress' | |
| # Close messages | |
| close-issue-message: | | |
| π This issue has been automatically closed due to inactivity. | |
| Feel free to reopen it if needed or create a new issue if the problem persists. | |
| close-pr-message: | | |
| π This pull request has been automatically closed due to inactivity. | |
| Feel free to reopen it if you'd like to continue working on it. | |
| # Exempt bot accounts | |
| exempt-all-pr-assignees: true | |
| exempt-all-issue-assignees: true | |
| # Only process 30 items per run to avoid rate limits | |
| operations-per-run: 30 | |
| # Remove stale label when updated | |
| remove-stale-when-updated: true | |
| # Don't stale items with certain milestones | |
| exempt-pr-milestones: 'v1.0,v2.0' | |
| exempt-issue-milestones: 'v1.0,v2.0' |