Close inactive issues and PRs #43
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 inactive issues and PRs | |
| on: | |
| schedule: | |
| - cron: "30 12 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| close-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| operations-per-run: 500 # increase from default | |
| stale-issue-label: "stale" | |
| exempt-issue-labels: "never-stale" | |
| days-before-issue-stale: 90 | |
| stale-issue-message: "This issue is stale because it has been open for 90 days with no activity. It will be closed if there is no activity in the next 30 days." | |
| days-before-issue-close: 30 | |
| close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale. Please reopen it if you think this was a mistake." | |
| stale-pr-label: "stale" | |
| exempt-pr-labels: "never-stale" | |
| days-before-pr-stale: 14 | |
| stale-pr-message: "This pull request is stale because it has been open for 14 days with no activity. It will be closed if there is no activity in the next 14 days." | |
| days-before-pr-close: 14 | |
| close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale. Please reopen it if you think this was a mistake." | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |