Automation - Stale issues and PRs #78
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: 'Automation - Stale issues and PRs' | |
on: | |
schedule: | |
- cron: '0 7 * * 1-5' | |
env: | |
DAYS_BEFORE_STALE: 30 | |
DAYS_BEFORE_CLOSE: 14 | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Run Stale Bot | |
id: stale | |
uses: actions/stale@v9 | |
with: | |
# General settings | |
days-before-stale: ${{ env.DAYS_BEFORE_STALE }} | |
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }} | |
operations-per-run: 3000 | |
enable-statistics: true # This is only useful if secret ACTIONS_STEP_DEBUG=true | |
remove-stale-when-updated: true | |
# PR settings | |
stale-pr-label: stale | |
stale-pr-message: | | |
Hi! This pull request hasn't had any activity for a while, so I am | |
marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} | |
days if it is not updated. Thanks for contributing! | |
close-pr-message: | | |
This pull request has been automatically closed due to inactivity. | |
Feel free to reopen it or create a new one if needed. | |
Thanks for contributing! | |