update merge_request comments API to support line and path

#7813 
Useless assignment to variable - `note_with_line`.<br>Line is too long. [159/80]<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.