diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-09-05 16:07:02 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-09-05 16:07:02 +0300 |
commit | 97ee68b1750bade46ef6c1d7c813bc917a13d89d (patch) | |
tree | 88c9bb554659f57e4ffb23d657aa69d6ceea534e /doc | |
parent | cff47b2045999ba5ab1af7cf8c0aa45b2c52fb36 (diff) | |
parent | 20bd1e6b34417a2b9f688071e2891a64d1653770 (diff) |
Merge branch '36534-show-commit-behind-mr-api' into 'master'
Resolve "Return how many commits the source branch is behind the target branch through the API"
Closes #36534
See merge request gitlab-org/gitlab-ce!21405
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/merge_requests.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/merge_requests.md b/doc/api/merge_requests.md index 58d05a70d05..9e6676d62fe 100644 --- a/doc/api/merge_requests.md +++ b/doc/api/merge_requests.md @@ -352,6 +352,7 @@ Parameters: - `id` (required) - The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user - `merge_request_iid` (required) - The internal ID of the merge request - `render_html` (optional) - If `true` response includes rendered HTML for title and description +- `include_diverged_commits_count` (optional) - If `true` response includes the commits behind the target branch ```json { @@ -435,7 +436,8 @@ Parameters: "username" : "root", "id" : 1, "name" : "Administrator" - } + }, + "diverged_commits_count": 2 } ``` |