From 1b0118c365b6cdc5857f8f85fdfab9e1d95a2246 Mon Sep 17 00:00:00 2001 From: Christine Chen <10511452+christineschen@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:54:40 -0400 Subject: [PATCH] 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. --- .github/workflows/auto-merge-speakeasy-pr.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge-speakeasy-pr.yaml b/.github/workflows/auto-merge-speakeasy-pr.yaml index 2fd2259..af67cfe 100644 --- a/.github/workflows/auto-merge-speakeasy-pr.yaml +++ b/.github/workflows/auto-merge-speakeasy-pr.yaml @@ -11,6 +11,10 @@ permissions: contents: write pull-requests: write +concurrency: + group: auto-merge-speakeasy + cancel-in-progress: false + jobs: auto-merge: if: | @@ -34,7 +38,8 @@ jobs: --search "head:speakeasy-sdk-regen-" \ --limit 500 \ --json number \ - --jq --arg current "$CURRENT_PR" '[.[].number | select(tostring != $current)] | .[]') + | jq -r --arg cur "$CURRENT_PR" \ + '[.[].number | select(tostring != $cur)] | .[]') if [ -z "$PRIOR_JSON" ]; then echo "No superseded Speakeasy PRs to close"