Mark and close stale PRs #5
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: "Mark and close stale PRs" | |
| on: | |
| schedule: | |
| - cron: "0 9 * * 1" # Runs on Monday at 9:00 AM | |
| workflow_dispatch: | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # [email protected] | |
| with: | |
| stale-pr-message: > | |
| This PR is stale because it has been open 14 days with no activity. | |
| It will be closed in 7 days unless you remove the `stale` label, | |
| add the `do-not-close` label, or comment on it. | |
| close-pr-message: > | |
| This PR was closed because it has not seen any activity since being marked as stale. | |
| days-before-stale: 14 | |
| days-before-close: 6 # use 6 here because this is only run once per week | |
| exempt-pr-labels: "do-not-close" |