Skip to content

Commit f0ea9c4

Browse files
tsteenbefviernau
authored andcommitted
post-mr-comment: Fix-up incorrect variable name after renaming
Signed-off-by: Thomas Steenbergen <[email protected]>
1 parent bf98673 commit f0ea9c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/post-mr-comment.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Fetch UPSTREAM_MERGE_REQUEST_IID if pipeline is not an MR pipeline.
66
UPSTREAM_MERGE_REQUEST_IID=${UPSTREAM_MERGE_REQUEST_IID:-$(
7-
curl -s -H "PRIVATE-TOKEN:${ORT_MR_TOKEN}" \
7+
curl -s -H "PRIVATE-TOKEN:${ORT_MR_API_TOKEN}" \
88
"${CI_API_V4_URL}/projects/${UPSTREAM_PROJECT_ID}/repository/commits/${UPSTREAM_COMMIT_SHA}/merge_requests" \
99
| jq -r ".[0].iid // empty"
1010
)}
@@ -49,11 +49,11 @@ NOTES_API_URL="${CI_API_V4_URL}/projects/${UPSTREAM_PROJECT_ID}/merge_requests/$
4949
if [[ -z ${NOTE_ID} ]]; then
5050
echo "Putting new comment to MR"
5151
curl --request POST --data-urlencode [email protected] \
52-
-H "PRIVATE-TOKEN:${ORT_MR_TOKEN}" \
52+
-H "PRIVATE-TOKEN:${ORT_MR_API_TOKEN}" \
5353
"${NOTES_API_URL}"
5454
else
5555
echo "Editing existing comment ${NOTE_ID}"
5656
curl --request PUT --data-urlencode [email protected] \
57-
-H "PRIVATE-TOKEN:${ORT_MR_TOKEN}" \
57+
-H "PRIVATE-TOKEN:${ORT_MR_API_TOKEN}" \
5858
"${NOTES_API_URL}/${NOTE_ID}"
5959
fi

0 commit comments

Comments
 (0)