Auto-close Stale Daily Doc Update Pull Requests #342
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: Auto-close Stale Daily Doc Update Pull Requests | |
on: | |
schedule: | |
- cron: '0 16 * * *' # Runs daily at midnight Beijing time | |
permissions: | |
contents: write # only for delete-branch option | |
pull-requests: write | |
jobs: | |
close-stale-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Close Stale Pull Requests | |
uses: actions/stale@v8 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-pr-message: 'This auto daily doc update PR is stale because it has been open for 3 days with no activity. Close.' | |
days-before-stale: 1 | |
days-before-close: 1 | |
remove-stale-when-updated: false | |
delete-branch: true | |
only-labels: 'ci:doc' |