summaryrefslogtreecommitdiff
path: root/doc/user
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2019-07-16 09:16:41 +0200
committerChristian Couder <chriscool@tuxfamily.org>2019-07-24 11:04:49 +0200
commit7cf4bf848f9d3018af2c87d7c88b26b7610db995 (patch)
tree064700fc164515f518ca6c03b73b229cfcbcc4da /doc/user
parentb2e4a7957ab7ae8e4ed5ae1fd4c0f3f826f26777 (diff)
downloadgitlab-ce-7cf4bf848f9d3018af2c87d7c88b26b7610db995.tar.gz
Support title and desc on merge w/ push optionlabel-descr-push-opts
MergeRequests::PushOptionsHandlerService has been updated to allow creating and updating merge requests with the `title` and `description` set using git push options. To create a new merge request and set its title and description: git push -u origin -o merge_request.create \ -o merge_request.title="My title" \ -o merge_request.description="My description" To update an existing merge request and set its title and description: git push -u origin -o merge_request.title="My title" \ -o merge_request.description="My description" Issue https://gitlab.com/gitlab-org/gitlab-ce/issues/64320
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/project/merge_requests/index.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/user/project/merge_requests/index.md b/doc/user/project/merge_requests/index.md
index d5ca853eff5..f78ec9d96e6 100644
--- a/doc/user/project/merge_requests/index.md
+++ b/doc/user/project/merge_requests/index.md
@@ -343,6 +343,30 @@ git push -o merge_request.remove_source_branch
You can also use this push option in addition to the
`merge_request.create` push option.
+### Set merge request title using git push options
+
+To set the title of an existing merge request, use
+the `merge_request.title` push option:
+
+```sh
+git push -o merge_request.title="The title I want"
+```
+
+You can also use this push option in addition to the
+`merge_request.create` push option.
+
+### Set merge request description using git push options
+
+To set the description of an existing merge request, use
+the `merge_request.description` push option:
+
+```sh
+git push -o merge_request.description="The description I want"
+```
+
+You can also use this push option in addition to the
+`merge_request.create` push option.
+
## Find the merge request that introduced a change
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/2383) in GitLab 10.5.