Close Stale Issues and PRs #66
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 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| steps: | |
| - name: Close Stale Issues and PRs | |
| uses: actions/stale@v9 | |
| with: | |
| days-before-issue-stale: 30 | |
| days-before-issue-close: 5 | |
| stale-issue-message: "This issue has been inactive for 30 days and is now marked as stale. Comment or remove the stale label to keep it open. It will be closed automatically in 5 days." | |
| close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." | |
| close-issue-reason: not_planned | |
| close-issue-label: closed-by-bot | |
| exempt-issue-labels: do-not-close | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 5 | |
| stale-pr-message: "This pull request has been inactive for 30 days and is now marked as stale. Comment or remove the stale label to keep it open. It will be closed automatically in 5 days." | |
| close-pr-message: "This pull request was closed because it has been stalled for 5 days with no activity." | |
| close-pr-label: closed-by-bot | |
| exempt-pr-labels: do-not-close |