Auto-close stale pull requests #80
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
# This workflow warns and then closes PRs that have had no activity for a | |
# specified amount of time. | |
# | |
# This currently use the default values of 60 days before marking a PR stale, | |
# and then waiting 7 days to close the stale PR. | |
# | |
# For more information, see: https://github.com/actions/stale | |
name: Auto-close stale pull requests | |
on: | |
schedule: | |
- cron: '0 13 * * 1' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# ignore issues | |
days-before-issue-stale: -1 | |
stale-pr-message: 'This pull request issue has been marked as stale due to inactivity. It will be closed in a week if it continues to be stale.' | |
stale-pr-label: 'no-pr-activity' |