Skip to content

Commit

Permalink
Add PR closing workflow
Browse files Browse the repository at this point in the history
Co-Authored-By: Steve Dower <steve.dower@python.org>
  • Loading branch information
zware and zooba committed Apr 16, 2024
1 parent f62dd32 commit 65ec6f7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/autoclose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Close Pull Requests

permissions:
pull-requests: write

on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Close Pull Requests
run: >
for pr in $(gh pr list --repo $REPO_NAME --json number --jq .[].number); do
gh pr close --repo $REPO_NAME --comment "$COMMENT" $pr;
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: python/cpython-bin-deps
COMMENT: >
We do not accept PRs on this repository. Please file an issue at
https://github.com/python/cpython requesting an update to the
binary packages in this repository.

0 comments on commit 65ec6f7

Please sign in to comment.