API to post inline comment to Merge Request


#1

Hi there,

Using GitLab API it is possible to post a comment to a commit “on a particular line of a particular file” (see here).

On Merge Request in order to add comments it’s required to use the notes resource (see here and here) but the note object does not seem to contain any parameter to comment on a particular line.

From the GitLab UI I’m able to add inline comments to a Merge Request in the Changes tab but when I call the API and look at the corresponding note object createed from my inline comment there is nothing about the inline, it is only a regular note object without any line or line_type parameter…

Anyone knows how to use the API to add inline comments to a Merge Request ?


#2

I’m attempting to add gitlab support to Lint Review (github.com/markstory/lint-review) which I use on github currently.
In order to do this I need a method of commenting on the merge request.

Is this possible?