hotfix
enters the product code, there is only the merge for master
which, when approved, propagates to develop
through the master 2 develop
branch % (or simply m2d
).
I am making a curl
request to open merge request . I currently have the following (already with the creation of the branch m2d
as much updated as possible):
git fetch
git push origin +origin/master:refs/heads/m2d
curl --request POST https://gitlab.com/api/v4/projects/${project_id}/merge_requests --header "PRIVATE-TOKEN: ${mytoken}" --data "{
\"id\": \"${project_id}\",
\"title\": \"m2d\",
\"source_branch\": \"m2d\",
\"target_branch\": \"develop\"
}"
However, I get the following output from curl
:
{"error":"title is missing, source_branch is missing, target_branch is missing"}
I tried to follow the tips in the International Stack Overflow, putting the relevant information / JSON in the body of the submission, but I could not figure out what I'm doing wrong.
I can, with the same token, successfully make the following request:
curl https://gitlab.com/api/v4/projects/${project_id} --header "PRIVATE-TOKEN: ${mytoken}"