summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2018-02-09 17:46:41 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2018-02-09 17:46:41 +0100
commit922d156a5e0412a12662df94e03479f7ed015f7b (patch)
treeb36694ea6070ec44bf95a1d02937cda291f87e22 /doc/api
parent2a970e02912a75962ce559ba49252a4696bbfbea (diff)
downloadgitlab-ce-922d156a5e0412a12662df94e03479f7ed015f7b.tar.gz
Separate branch and tag names
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/commits.md9
1 files changed, 4 insertions, 5 deletions
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