mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
Fix milestone lookup piping jq output through gh api --jq (#37381)
Automatic Merge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user