Resolve "Handle merge_request_diff_head_sha in the CreateNotes api"
What does this MR do and why?
We are allowing the Create Notes api endpoint to handle the merge_request_diff_head_sha
param which is needed when we want to use the /merge
quick action
To test
Create a merge request that can be merged.
- On master try the request
- It should return 500
- Switch to this branch
- Run the Request
- It should merge the branch
Curl request
Fill in the HEAD SHA, TOKEN and correct url info
curl --request POST -F "body=/merge" -F "merge_request_diff_head_sha=HEAD_SHA" -H "PRIVATE-TOKEN: TOKEN" "http://localhost:3000/api/v4/projects/34/merge_requests/9/notes"
Related to: #354116 (closed)
Edited by Marc Shaw