diff --git a/pull-request.sh b/pull-request.sh index 909ae27..83eca52 100755 --- a/pull-request.sh +++ b/pull-request.sh @@ -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}"