From 17b7cac81ab4c72a965d14f43b31c5eeaa4e82c6 Mon Sep 17 00:00:00 2001 From: Samuel Lijin Date: Thu, 11 Jan 2024 14:32:59 -0800 Subject: [PATCH] cat-post-body --- src/scripts/prerequisites.sh | 1 - src/scripts/upload_impacted_targets.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/prerequisites.sh b/src/scripts/prerequisites.sh index d97e51b..f8ffc17 100755 --- a/src/scripts/prerequisites.sh +++ b/src/scripts/prerequisites.sh @@ -49,7 +49,6 @@ fetchRemoteGitHistory "${merge_instance_branch}" fetchRemoteGitHistory "${pr_branch}" merge_instance_branch_head_sha=$(git rev-parse "origin/${merge_instance_branch}") - pr_branch_head_sha=$(git rev-parse "${pr_branch}") echo "Identified changes: " "${impacts_all_detected}" diff --git a/src/scripts/upload_impacted_targets.sh b/src/scripts/upload_impacted_targets.sh index 539ecc2..230d53d 100755 --- a/src/scripts/upload_impacted_targets.sh +++ b/src/scripts/upload_impacted_targets.sh @@ -79,6 +79,8 @@ else num_impacted_targets=$(wc -l <"${IMPACTED_TARGETS_FILE}") fi +cat $POST_BODY + HTTP_STATUS_CODE=$( curl -s -o /dev/null -w '%{http_code}' -X POST \ -H "Content-Type: application/json" -H "x-api-token:${API_TOKEN}" \