Skip to content

Close inactive PRs #553

Close inactive PRs

Close inactive PRs #553

Workflow file for this run

name: Close inactive PRs
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
#
# Leave all issues alone
days-before-issue-stale: -1
days-before-issue-close: -1
#
# We autoclose PRs marked as "Stale" (which is the default label for this)
stale-pr-label: "Stale"
# Issues that are internally tracked in Jira are not marked as "Stale"
exempt-pr-labels: 'tracked'
# After 14 days of inactivity, mark PRs as "Stale"
days-before-pr-stale: 14
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity and the Github Actions are not passing."
# Autoclose stale PRs after 14 days.
days-before-pr-close: 14
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
repo-token: ${{ secrets.GITHUB_TOKEN }}