Skip to content

Commit 36d5ce5

Browse files
authored
Specify --repo, avoid xargs
1 parent f11008a commit 36d5ce5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/autoclose.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
steps:
1515
- name: Close Pull Requests
1616
run: >
17-
gh pr list --json number --jq .[].number
18-
| xargs -L1 gh pr close --comment "$COMMENT"
17+
for pr in $(gh pr list --repo $REPO_NAME --json number --jq .[].number); do
18+
gh pr close --repo $REPO_NAME --comment "$COMMENT" $pr;
19+
done
1920
env:
2021
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
REPO_NAME: python/cpython-source-deps
2123
COMMENT: >
2224
We do not accept PRs on this repository. Please file an issue at
2325
https://github.com/python/cpython requesting an update to the

0 commit comments

Comments
 (0)