Fix milestone lookup piping jq output through gh api --jq (#37381)

Automatic Merge
This commit is contained in:
Amy Blais
2026-07-08 08:50:45 +02:00
committed by GitHub
parent 0ef9b7bf52
commit ac44b55530
+2 -2
View File
@@ -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