Close stale pull requests #1906
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 pull requests" | |
| on: | |
| schedule: | |
| - cron: "12 3 * * *" # arbitrary time not to DDOS GitHub | |
| permissions: | |
| contents: read | |
| jobs: | |
| stale: | |
| permissions: | |
| pull-requests: write # required for marking and closing stale PRs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days.' | |
| close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' | |
| exempt-pr-labels: 'release:after-ga' | |
| # opt out of defaults to avoid marking issues as stale | |
| days-before-stale: -1 | |
| days-before-close: -1 | |
| # overrides the above only for pull requests | |
| days-before-pr-stale: 7 | |
| days-before-pr-close: 7 |