Close Stale Issues and PRs #32
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: # Allow manual trigger | |
| 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-stale: 60 | |
| days-before-close: 14 | |
| stale-issue-label: "stale" | |
| exempt-issue-labels: "pinned,security,help-wanted,good-first-issue" | |
| 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. | |
| Thank you for your contributions! | |
| close-issue-message: | | |
| This issue has been automatically closed due to inactivity. | |
| If you believe this is still relevant, please reopen or create a new issue | |
| with updated context. | |
| # PR settings | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 7 | |
| stale-pr-label: "stale" | |
| exempt-pr-labels: "pinned,security" | |
| stale-pr-message: | | |
| This pull request has been automatically marked as stale because it has not had | |
| recent activity. It will be closed in 7 days if no further activity occurs. | |
| If you're still working on this, please add a comment or push new commits. | |
| Thank you for your contributions! | |
| close-pr-message: | | |
| This pull request has been automatically closed due to inactivity. | |
| Feel free to reopen if you'd like to continue working on this. | |
| # Operation limits | |
| operations-per-run: 30 |