-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Steve Dower <steve.dower@python.org>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |