Skip to content

Commit 1b0118c

Browse files
fix: address review feedback on auto-merge workflow
Pipe gh pr list output through jq instead of passing --arg to gh --jq, and add a repo-level concurrency group to prevent cross-PR merge races.
1 parent cda73e5 commit 1b0118c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/auto-merge-speakeasy-pr.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ permissions:
1111
contents: write
1212
pull-requests: write
1313

14+
concurrency:
15+
group: auto-merge-speakeasy
16+
cancel-in-progress: false
17+
1418
jobs:
1519
auto-merge:
1620
if: |
@@ -34,7 +38,8 @@ jobs:
3438
--search "head:speakeasy-sdk-regen-" \
3539
--limit 500 \
3640
--json number \
37-
--jq --arg current "$CURRENT_PR" '[.[].number | select(tostring != $current)] | .[]')
41+
| jq -r --arg cur "$CURRENT_PR" \
42+
'[.[].number | select(tostring != $cur)] | .[]')
3843
3944
if [ -z "$PRIOR_JSON" ]; then
4045
echo "No superseded Speakeasy PRs to close"

0 commit comments

Comments
 (0)