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
| # This workflow will close inactive PRs | |
| # For more information see: https://docs.github.com/en/actions/about-github-actions | |
| name: Close inactive PRs | |
| on: | |
| # Checks every day at 01:30 UTC | |
| schedule: | |
| - cron: "30 1 * * *" | |
| jobs: | |
| close-prs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| days-before-pr-stale: 120 | |
| days-before-pr-close: 14 | |
| stale-pr-label: "stale" | |
| stale-pr-message: "This pull request is stale because it has been open for 120 days with no activity." | |
| close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale." | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |