Close inactive pull requests #1031
This file contains 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 pull requests | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
close-pulls: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
days-before-issue-stale: -1 # disable making issues stale for now | |
days-before-pr-stale: 30 | |
days-before-pr-close: 14 | |
stale-pr-label: stale | |
stale-pr-message: > | |
This pull request has been inactive for 30 days. Is it still in | |
progress? If so, please comment, remove the "stale" label, or add | |
new changes. Otherwise, this pull request will be automatically | |
closed in 14 days. | |
close-pr-message: > | |
This pull request has been closed automatically due to inactivity. |