vitess.io/vitess@v0.16.2/.github/workflows/close_stale_pull_requests.yml (about)

     1  name: close_stale_pull_requests
     2  on:
     3    schedule:
     4      - cron: '0 1 * * *'
     5  
     6    workflow_dispatch: {}
     7  
     8  permissions:
     9    pull-requests: write
    10  
    11  jobs:
    12    close_stale_pull_requests:
    13      runs-on: ubuntu-22.04
    14      steps:
    15        - uses: actions/stale@v5
    16          with:
    17            days-before-stale: 30
    18            # Do not handle issues at all. We only want to handle PRs.
    19            days-before-issue-stale: -1
    20  
    21            stale-pr-message: |
    22              This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
    23  
    24              - Push additional commits to the associated branch.
    25              - Remove the stale label.
    26              - Add a comment indicating why it is not stale.
    27  
    28              If no action is taken within 7 days, this PR will be closed.
    29            close-pr-message: "This PR was closed because it has been stale for 7 days with no activity."
    30  
    31            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    32