Close inactive PRs #12
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 PRs | |
| on: | |
| schedule: | |
| - cron: "30 1 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| close-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| # After 30 days of no activity, a PR will be marked as stale | |
| days-before-pr-stale: 30 | |
| # PR has 7 more days to become active, otherwise it will be closed. | |
| days-before-pr-close: 7 | |
| stale-pr-label: "stale" | |
| stale-pr-message: "This PR has been marked as stale because it has been open for 30 days with no activity. Please comment or remove the stale label if you wish to keep it active, otherwise it will be closed in 7 days" | |
| close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale." | |
| days-before-issue-stale: -1 | |
| days-before-issue-close: -1 |