Skip to content

Auto-close Stale Daily Doc Update Pull Requests #334

Auto-close Stale Daily Doc Update Pull Requests

Auto-close Stale Daily Doc Update Pull Requests #334

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'