-
-
Notifications
You must be signed in to change notification settings - Fork 48
29 lines (26 loc) · 751 Bytes
/
autoclose.yaml
File metadata and controls
29 lines (26 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Close Pull Requests
permissions:
pull-requests: write
on:
pull_request:
types:
- opened
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-source-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
source packages in this repository.