diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-04 19:18:07 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-04 19:18:07 +0200 |
commit | d41479266d16facdce08974ef76f3fb7539a1530 (patch) | |
tree | b41245c96a85968bde0a65d66328aecbd99031c0 /doc/api/commits.md | |
parent | c41f64d7ff8ddcc47e0ab269accc33b4a2653a22 (diff) | |
download | gitlab-ce-d41479266d16facdce08974ef76f3fb7539a1530.tar.gz |
Add start_branch to files and commits APIs
Diffstat (limited to 'doc/api/commits.md')
-rw-r--r-- | doc/api/commits.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md index c91f9ecbdaf..2a78553782f 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -69,8 +69,9 @@ POST /projects/:id/repository/commits | Attribute | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | -| `branch` | string | yes | The name of a branch | +| `branch` | string | yes | Name of the branch to commit into. To create a new branch, also provide `start_branch`. | | `commit_message` | string | yes | Commit message | +| `start_branch` | string | no | Name of the branch to start the new commit from | | `actions[]` | array | yes | An array of action hashes to commit as a batch. See the next table for what attributes it can take. | | `author_email` | string | no | Specify the commit author's email address | | `author_name` | string | no | Specify the commit author's name | |