summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorKerri Miller <kerrizor@kerrizor.com>2019-05-31 14:21:15 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-05-31 14:21:15 +0000
commit35c37fb29343974bf2edc3959d6a21db9c384307 (patch)
treee5f0065b8b9347c3920190e476e5ba816497c23f /doc/api
parent9a8955d3c06c23cfc95914254ec77cc78e2cf6b5 (diff)
downloadgitlab-ce-35c37fb29343974bf2edc3959d6a21db9c384307.tar.gz
Add optional param :start_project to allow variable commit targets
This extends POST#:id/repository/commits to allow the optional parameter `:start_project`, which will allow targeting other projects besides the one derived from `:id`. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/50850
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/commits.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index 92f53c7b5e6..25015fad9e3 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -75,6 +75,7 @@ POST /projects/:id/repository/commits
| `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 |
+| `start_project` | integer/string | no | The project ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) to start the commit from. Defaults to the value of `id`. |
| `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 |