Visual Review discussions are notes on merge requests sent as feedback from Visual Reviews.
Creates a new thread to a single project merge request. This is similar to creating a note but other comments (replies) can be added to it later.
|integer/string||yes||The ID or URL-encoded path of the project|
|integer||yes||The IID of a merge request|
|string||yes||The content of the thread|
|hash||no||Position when creating a diff note|
|string||yes||Base commit SHA in the source branch|
|string||yes||SHA referencing commit in target branch|
|string||yes||SHA referencing HEAD of this merge request|
|string||yes||Type of the position reference. Either |
|string||no||File path after change|
|integer||no||Line number after change (Only stored for |
|string||no||File path before change|
|integer||no||Line number before change (Only stored for |
|integer||no||Width of the image (Only stored for |
|integer||no||Height of the image (Only stored for |
|integer||no||X coordinate (Only stored for |
|integer||no||Y coordinate (Only stored for |
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/merge_requests/11/visual_review_discussions?body=comment"