update merge_request comments API to support line and path

#7813 
Line is too long. [91/80]