diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-04 12:08:34 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-04 12:08:34 +0000 |
commit | 1f5a6eb2576b17deee3942ea5e1f598bf3d4da8c (patch) | |
tree | 0403572b4aa4eae6210050de272019e155395a50 /doc/api | |
parent | 0c377a79d45e71a054e07ec20c502643591d0181 (diff) | |
parent | c366e81da7fb6c9ef921cbd57e5ac662999f0bc0 (diff) | |
download | gitlab-ce-1f5a6eb2576b17deee3942ea5e1f598bf3d4da8c.tar.gz |
Merge branch 'mr-commits-api' into 'master'
Add API endpoint to fetch merge request commits list
Fixes #3748
See merge request !1984
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/merge_requests.md | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/doc/api/merge_requests.md b/doc/api/merge_requests.md index 0cef09d5b27..82f2cef969f 100644 --- a/doc/api/merge_requests.md +++ b/doc/api/merge_requests.md @@ -101,6 +101,43 @@ Parameters: } ``` +## Get single MR commits + +Get a list of merge request commits. + +``` +GET /projects/:id/merge_request/:merge_request_id/commits +``` + +Parameters: + +- `id` (required) - The ID of a project +- `merge_request_id` (required) - The ID of MR + + +```json +[ + { + "id": "ed899a2f4b50b4370feeea94676502b42383c746", + "short_id": "ed899a2f4b5", + "title": "Replace sanitize with escape once", + "author_name": "Dmitriy Zaporozhets", + "author_email": "dzaporozhets@sphereconsultinginc.com", + "created_at": "2012-09-20T11:50:22+03:00", + "message": "Replace sanitize with escape once" + }, + { + "id": "6104942438c14ec7bd21c6cd5bd995272b3faff6", + "short_id": "6104942438c", + "title": "Sanitize for network graph", + "author_name": "randx", + "author_email": "dmitriy.zaporozhets@gmail.com", + "created_at": "2012-09-20T09:06:12+03:00", + "message": "Sanitize for network graph" + } +] +``` + ## Get single MR changes Shows information about the merge request including its files and changes. @@ -159,7 +196,7 @@ Parameters: "updated_at": "2015-02-02T19:49:26.013Z", "due_date": null }, - "files": [ + "changes": [ { "old_path": "VERSION", "new_path": "VERSION", |