Commit 0b9abf4d authored by Nathanaël's avatar Nathanaël 💩

Add comments about the bug

parent 36644605
Pipeline #74327 failed with stage
in 34 seconds
......@@ -3,14 +3,13 @@
api_endpoint="${CI_PROJECT_URL}/../../api/v4"
commits_api="${api_endpoint}/projects/${CI_PROJECT_ID}/repository/commits"
commit_sha="9a9760f9277d9d5059d9d9c3a6935f464bc69de1"
curl -sS \
--request POST \
--header "PRIVATE-TOKEN: ${BADGE_TOKEN}" \
--form "author=roipoussiere" \
--form "note=test" \
"${commits_api}/${commit_sha}/comments"
"${commits_api}/${CI_COMMIT_SHA}/comments"
# echo note=$(cat $1)
# ${commits_api}/${CI_COMMIT_SHA}/discussions
# Does not work, gitlab-ci says:
# {"message":"Failed to save note {:author=\u003e[\"can't be blank\"]}"}
# But this works outside gitlab-ci (gitlab API bug?).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment