Skip to content

Commit

Permalink
cat-post-body
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin authored Jan 11, 2024
1 parent 08df0b5 commit 17b7cac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/scripts/prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/upload_impacted_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ else
num_impacted_targets=$(wc -l <"${IMPACTED_TARGETS_FILE}")
fi

cat $POST_BODY

Check notice on line 82 in src/scripts/upload_impacted_targets.sh

View check run for this annotation

Trunk-Staging.io / Trunk Check

shellcheck(SC2248)

[new] Prefer double quoting even when variables don't contain special characters.

Check notice on line 82 in src/scripts/upload_impacted_targets.sh

View check run for this annotation

Trunk-Staging.io / Trunk Check

shellcheck(SC2250)

[new] Prefer putting braces around variable references even when not strictly required.

HTTP_STATUS_CODE=$(
curl -s -o /dev/null -w '%{http_code}' -X POST \
-H "Content-Type: application/json" -H "x-api-token:${API_TOKEN}" \
Expand Down

0 comments on commit 17b7cac

Please sign in to comment.