summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@gmail.com>2018-03-02 16:48:55 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-03-02 16:48:55 +0000
commitbb89412ffb22de2b188580e9ac6f4bd6e2f4df84 (patch)
tree7b797d0642a11d5cf43e84d6858cd9c20e1e3f6d /doc
parent29356cfee159d4ffd539a7f3ad007c3ef5f76b92 (diff)
downloadgitlab-ce-bb89412ffb22de2b188580e9ac6f4bd6e2f4df84.tar.gz
expose metrics in merge request api
Diffstat (limited to 'doc')
-rw-r--r--doc/api/merge_requests.md44
1 files changed, 32 insertions, 12 deletions
diff --git a/doc/api/merge_requests.md b/doc/api/merge_requests.md
index 6ce021cb4bf..cb9b0618767 100644
--- a/doc/api/merge_requests.md
+++ b/doc/api/merge_requests.md
@@ -261,20 +261,20 @@ Parameters:
"upvotes": 0,
"downvotes": 0,
"author": {
- "id": 1,
- "username": "admin",
- "email": "admin@example.com",
- "name": "Administrator",
- "state": "active",
- "created_at": "2012-04-29T08:46:00Z"
+ "state" : "active",
+ "web_url" : "https://gitlab.example.com/root",
+ "avatar_url" : null,
+ "username" : "root",
+ "id" : 1,
+ "name" : "Administrator"
},
"assignee": {
- "id": 1,
- "username": "admin",
- "email": "admin@example.com",
- "name": "Administrator",
- "state": "active",
- "created_at": "2012-04-29T08:46:00Z"
+ "state" : "active",
+ "web_url" : "https://gitlab.example.com/root",
+ "avatar_url" : null,
+ "username" : "root",
+ "id" : 1,
+ "name" : "Administrator"
},
"source_project_id": 2,
"target_project_id": 3,
@@ -308,6 +308,26 @@ Parameters:
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
+ },
+ "closed_at": "2018-01-19T14:36:11.086Z",
+ "latest_build_started_at": null,
+ "latest_build_finished_at": null,
+ "first_deployed_to_production_at": null,
+ "pipeline": {
+ "id": 8,
+ "ref": "master",
+ "sha": "2dc6aa325a317eda67812f05600bdf0fcdc70ab0",
+ "status": "created"
+ },
+ "merged_by": null,
+ "merged_at": null,
+ "closed_by": {
+ "state" : "active",
+ "web_url" : "https://gitlab.example.com/root",
+ "avatar_url" : null,
+ "username" : "root",
+ "id" : 1,
+ "name" : "Administrator"
}
}
```