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.