Repository navigation
Mark stale pull requests #16
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 stale pull requests | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Handle stale PRs | |
| uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0 | |
| with: | |
| # only handle PR,not issues | |
| days-before-issue-stale: -1 | |
| days-before-issue-close: -1 | |
| # PR rules | |
| days-before-pr-stale: 30 | |
| days-before-pr-close: 30 | |
| stale-pr-label: "stale" | |
| # exclude labels | |
| exempt-pr-labels: "WIP,pinned,security" | |
| exempt-draft-pr: true | |
| # message | |
| stale-pr-message: > | |
| This pull request has been inactive for 30 days. | |
| To keep things moving, please update it or let us know | |
| if it's still in progress. Otherwise it will be | |
| automatically closed in 30 days. | |
| close-pr-message: > | |
| Closing this pull request due to 60 days of inactivity. | |
| Feel free to reopen it if you'd like to continue the work, | |
| or open a new PR. Thank you for your contribution!:-) |