diff --git a/action.yml b/action.yml index ec499b3..4ebf186 100644 --- a/action.yml +++ b/action.yml @@ -75,10 +75,12 @@ runs: Please reply with a keyword on this issue. " + ASSIGNEES_JSON=$(jq -nc --arg csv "$APPROVERS" '$csv | split(",")') + json=$(jq -n \ --arg title "$title" \ --arg body "$body" \ - --argjson assignees "$(printf '"%s"' ${APPROVERS//,/\" \"})" \ + --argjson assignees "$ASSIGNEES_JSON" \ '{title:$title, body:$body, assignees:$assignees}') resp=$(curl -s -X POST \