Skip to content

Close Inactive PRs (auto) #39

Close Inactive PRs (auto)

Close Inactive PRs (auto) #39

name: Close Inactive PRs (auto)
on:
schedule:
- cron: "17 4 * * *" # daily
workflow_dispatch:
permissions:
pull-requests: write
contents: read
issues: write
jobs:
close:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Close inactive failing PRs
env:
GITHUB_TOKEN: ${{ github.token }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
INACTIVITY_DAYS: "7"
run: |
python scripts/close_inactive_failing_prs.py