update to use .number

Signed-off-by: vsoch <vsochat@stanford.edu>
This commit is contained in:
vsoch
2020-03-18 14:28:35 -06:00
parent d0166ffab5
commit df89c5fb9e

View File

@@ -77,7 +77,7 @@ create_pull_request() {
# If there are assignees and we were successful to open, assigm them to it
if [[ "${ASSIGNEES}" != "" ]] && [[ "${RETVAL}" == "0" ]]; then
NUMBER=$(echo "${RESPONSE}" | jq --raw-output '.[] | .number')
NUMBER=$(echo "${RESPONSE}" | jq --raw-output '.number')
printf "Number opened for PR is ${NUMBER}\n"
printf "Attempting to assign ${ASSIGNEES} to ${PR} with number ${NUMBER}"