jq fix.
This commit is contained in:
+3
-1
@@ -75,10 +75,12 @@ runs:
|
|||||||
Please reply with a keyword on this issue.
|
Please reply with a keyword on this issue.
|
||||||
"
|
"
|
||||||
|
|
||||||
|
ASSIGNEES_JSON=$(jq -nc --arg csv "$APPROVERS" '$csv | split(",")')
|
||||||
|
|
||||||
json=$(jq -n \
|
json=$(jq -n \
|
||||||
--arg title "$title" \
|
--arg title "$title" \
|
||||||
--arg body "$body" \
|
--arg body "$body" \
|
||||||
--argjson assignees "$(printf '"%s"' ${APPROVERS//,/\" \"})" \
|
--argjson assignees "$ASSIGNEES_JSON" \
|
||||||
'{title:$title, body:$body, assignees:$assignees}')
|
'{title:$title, body:$body, assignees:$assignees}')
|
||||||
|
|
||||||
resp=$(curl -s -X POST \
|
resp=$(curl -s -X POST \
|
||||||
|
|||||||
Reference in New Issue
Block a user