Label and close stale pull requests #6
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
# For more information, see: | |
# https://github.com/actions/stale | |
name: Label and close stale pull requests | |
on: | |
schedule: | |
- cron: '31 19 * * *' | |
workflow_dispatch: | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-pr-message: 'Marking this PR as stale due to inactivity; it will be closed in 7 days.' | |
stale-pr-label: 'stale' | |
days-before-stale: 30 | |
days-before-close: 7 | |
close-pr-message: "Closing PR due to inactivity. Feel free to open a new PR if necessary." | |