From 70e02f6116e8f3467069f37788fbd873af298e0b Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Mon, 24 Aug 2026 11:42:16 -0400 Subject: [PATCH] fix(ci): escape graphql ids for actionlint --- .github/workflows/auto-merge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-merge.yaml b/.github/workflows/auto-merge.yaml index 7a6e8a1..2ed9bd9 100644 --- a/.github/workflows/auto-merge.yaml +++ b/.github/workflows/auto-merge.yaml @@ -42,13 +42,13 @@ jobs: PR_NODE_ID: ${{ github.event.pull_request.node_id }} run: | set -euo pipefail - in_queue="$(gh api graphql -f query='query($id:ID!) { node(id:$id) { ... on PullRequest { isInMergeQueue } } }' -f id="$PR_NODE_ID" --jq '.data.node.isInMergeQueue')" + in_queue="$(gh api graphql -f query="query(\$id:ID!) { node(id:\$id) { ... on PullRequest { isInMergeQueue } } }" -f id="$PR_NODE_ID" --jq '.data.node.isInMergeQueue')" if [ "$in_queue" = "true" ]; then echo "already in merge queue" exit 0 fi set +e - out="$(gh api graphql -f query='mutation($id:ID!) { enqueuePullRequest(input:{pullRequestId:$id}) { mergeQueueEntry { state } } }' -f id="$PR_NODE_ID" 2>&1)" + out="$(gh api graphql -f query="mutation(\$id:ID!) { enqueuePullRequest(input:{pullRequestId:\$id}) { mergeQueueEntry { state } } }" -f id="$PR_NODE_ID" 2>&1)" status=$? set -e if [ "$status" -eq 0 ]; then