8000 Close PR with gh CLI instead of action · python/cpython-source-deps@cfe6d2b · GitHub
[go: up one dir, main page]

Skip to content

Commit cfe6d2b

Browse files
committed
Close PR with gh CLI instead of action
1 parent 2459a28 commit cfe6d2b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/autoclose.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ on:
44
pull_request_target:
55
types: [opened]
66
branches:
7-
- '**'
7+
- '**/*'
88

99
jobs:
1010
run:
1111
runs-on: ubuntu-latest
1212
steps:
13-
# Pin to commit hash to avoid surprises via the action
14-
- uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448
15-
with:
16-
comment: |
13+
- name: Close Pull
14+
run: gh pr close --comment "$COMMENT"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
COMMENT: >
1718
We do not accept PRs on this repository. Please file an issue at
1819
https://github.com/python/cpython requesting an update to the
1920
source packages in this repository.

0 commit comments

Comments
 (0)
0