From df89c5fb9e9eb17dae164e8fb67958ad8088716e Mon Sep 17 00:00:00 2001 From: vsoch Date: Wed, 18 Mar 2020 14:28:35 -0600 Subject: [PATCH] update to use .number Signed-off-by: vsoch --- pull-request.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"