From 922d156a5e0412a12662df94e03479f7ed015f7b Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Fri, 9 Feb 2018 17:46:41 +0100 Subject: Separate branch and tag names --- doc/api/commits.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc/api') diff --git a/doc/api/commits.md b/doc/api/commits.md index 3c12906def4..18d31ffe24d 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -214,7 +214,7 @@ Parameters: | --------- | ---- | -------- | ----------- | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | `sha` | string | yes | The commit hash | -| `type` | string | no | The scope of commits. Possible values `branches`, `tags`, `all`. Default is a `all`. | +| `type` | string | no | The scope of commits. Possible values `branches`, `tags`, `all`. Default is `all`. | ```bash curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --form "type=all" "https://gitlab.example.com/api/v4/projects/5/repository/commits/5937ac0a7beb003549fc5fd26fc247adbce4a52e/refs" @@ -224,11 +224,10 @@ Example response: ```json [ - {"name": "'test'"}, - {"name": "master"}, - {"name": "v1.1.0"} + {"branch_name": "'test'"}, + {"branch_name": "master"}, + {"tag_name": "v1.1.0"} ] - ``` ## Cherry pick a commit -- cgit v1.2.1