Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #7813

Closed
Open
Created Sep 21, 2014 by Administrator@rootOwner

Comment API improvement

Created by: zlx

Hi, Guys

I'm work on a project to automatically review code syntax, like hound did, but for gitlab project. now I have meet some problems:

_I want to add some comments on special line in a MR.!!_ And I find an API POST /projects/:id/merge_request/:merge_request_id/comments, but it do not support assign line and line_path.

Thanks Jeroen Jacobs, with the patch https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/137, I can add some commets with line and line_path to special commit.

but things seems more complex than that, if I use the new API(comment on special commit), I need to know which commit does the change file belongs to, I can not find any API can provide this.

maybe I'm missing somethings. Can anybody help me?

Assignee
Assign to
Time tracking