Close stale issues and PRs #17
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 0 * * *" # Daily at midnight UTC | |
| workflow_dispatch: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Issue settings | |
| days-before-issue-stale: 60 | |
| days-before-issue-close: 14 | |
| stale-issue-label: 'stale' | |
| 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 is still relevant, please: | |
| - Add a comment to keep it open | |
| - Provide any additional context or updates | |
| - Remove the 'stale' label | |
| Thank you for your contributions! | |
| close-issue-message: | | |
| This issue was automatically closed due to inactivity. | |
| If you believe this was closed in error, please reopen it and provide any necessary context. | |
| # PR settings | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 14 | |
| stale-pr-label: 'stale' | |
| 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 relevant, please: | |
| - Rebase on the latest main branch | |
| - Address any review comments | |
| - Add a comment to keep it open | |
| Thank you for your contribution! | |
| close-pr-message: | | |
| This pull request was automatically closed due to inactivity. | |
| If you'd like to continue working on this, please reopen it and rebase on the latest main branch. | |
| # Exempt labels | |
| exempt-issue-labels: 'pinned,security,bug,enhancement' | |
| exempt-pr-labels: 'pinned,security,work-in-progress' | |
| # Other settings | |
| operations-per-run: 100 | |
| remove-stale-when-updated: true | |
| ascending: true |