Close stale issues and PRs #151
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: "1 2 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| actions: write | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v9 | |
| with: | |
| # Issues configuration | |
| stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. 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 feel free to reopen it." | |
| close-issue-label: "Closed" | |
| stale-issue-label: "Stale" | |
| exempt-issue-labels: "pinned,important,Closed" | |
| # PRs configuration | |
| stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." | |
| close-pr-message: "This pull request has been automatically closed due to inactivity. If you'd like to continue working on it, please reopen it." | |
| close-pr-label: "Closed" | |
| stale-pr-label: "Stale" | |
| exempt-pr-labels: "pinned,important,Closed" | |
| exempt-draft-pr: true | |
| # Common configuration | |
| operations-per-run: 5000 | |
| ascending: true |