File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# Fetch UPSTREAM_MERGE_REQUEST_IID if pipeline is not an MR pipeline.
6
6
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 } " \
8
8
" ${CI_API_V4_URL} /projects/${UPSTREAM_PROJECT_ID} /repository/commits/${UPSTREAM_COMMIT_SHA} /merge_requests" \
9
9
| jq -r " .[0].iid // empty"
10
10
)}
@@ -49,11 +49,11 @@ NOTES_API_URL="${CI_API_V4_URL}/projects/${UPSTREAM_PROJECT_ID}/merge_requests/$
49
49
if [[ -z ${NOTE_ID} ]]; then
50
50
echo " Putting new comment to MR"
51
51
curl --request POST --data-urlencode
[email protected] \
52
- -H " PRIVATE-TOKEN:${ORT_MR_TOKEN } " \
52
+ -H " PRIVATE-TOKEN:${ORT_MR_API_TOKEN } " \
53
53
" ${NOTES_API_URL} "
54
54
else
55
55
echo " Editing existing comment ${NOTE_ID} "
56
56
curl --request PUT --data-urlencode
[email protected] \
57
- -H " PRIVATE-TOKEN:${ORT_MR_TOKEN } " \
57
+ -H " PRIVATE-TOKEN:${ORT_MR_API_TOKEN } " \
58
58
" ${NOTES_API_URL} /${NOTE_ID} "
59
59
fi
You can’t perform that action at this time.
0 commit comments