diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-09 17:46:41 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-09 17:46:41 +0100 |
commit | 922d156a5e0412a12662df94e03479f7ed015f7b (patch) | |
tree | b36694ea6070ec44bf95a1d02937cda291f87e22 /doc/api | |
parent | 2a970e02912a75962ce559ba49252a4696bbfbea (diff) | |
download | gitlab-ce-922d156a5e0412a12662df94e03479f7ed015f7b.tar.gz |
Separate branch and tag names
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/commits.md | 9 |
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 |