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
  • #1738

Closed
Open
Created Oct 19, 2012 by Administrator@rootOwner

API for Merge Requests

Created by: justfalter

My team has been using gitlab for a few weeks, now, and we make heavy use of merge requests. It has occurred to us, though, that there are advantages to having programatic access to merge requests. I couldn't find another issue that already mentioned a merge request API, so here it goes.

Merge request operations I can think of:

  • list all: GET /projects/:id/merge_requests
  • create: POST /projects/:id/merge_requests
  • get comments: GET /projects/:id/merge_requests/:merge_request_id/comments
  • make a comment: POST /projects/:id/merge_requests/:merge_request_id/comments
  • close? DELETE /projects/:id/merge_requests/:merge_request_id

I'll be honest, I'm not certain about what convention should be used for closing, as you don't really delete a merge request, but I think everything else is pretty straight-forward.

Assignee
Assign to
Time tracking