From ac44b555303fb3faeba46ac73b4f1cf917880a94 Mon Sep 17 00:00:00 2001 From: Amy Blais <29708087+amyblais@users.noreply.github.com> Date: Wed, 8 Jul 2026 09:50:45 +0300 Subject: [PATCH] Fix milestone lookup piping jq output through gh api --jq (#37381) Automatic Merge --- .github/workflows/docs-needed.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-needed.yml b/.github/workflows/docs-needed.yml index 853a9008c3b..ba37db609f5 100644 --- a/.github/workflows/docs-needed.yml +++ b/.github/workflows/docs-needed.yml @@ -509,8 +509,8 @@ jobs: # milestone title contains quotes or other special characters. NUM=$(gh api 'repos/mattermost/docs/milestones?state=all' \ --paginate \ - --jq '.[] | select(.title == $title) | .number' \ - --arg title "$MILESTONE_TITLE" \ + | jq -r --arg title "$MILESTONE_TITLE" \ + '.[] | select(.title == $title) | .number' \ | head -1) if [ -z "$NUM" ]; then