diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2019-07-16 10:16:41 +0300 |
---|---|---|
committer | Christian Couder <chriscool@tuxfamily.org> | 2019-07-24 12:04:49 +0300 |
commit | 7cf4bf848f9d3018af2c87d7c88b26b7610db995 (patch) | |
tree | 064700fc164515f518ca6c03b73b229cfcbcc4da /lib/gitlab/push_options.rb | |
parent | b2e4a7957ab7ae8e4ed5ae1fd4c0f3f826f26777 (diff) |
Support title and desc on merge w/ push option
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 'lib/gitlab/push_options.rb')
-rw-r--r-- | lib/gitlab/push_options.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/push_options.rb b/lib/gitlab/push_options.rb index b96590af08e..682edfc4259 100644 --- a/lib/gitlab/push_options.rb +++ b/lib/gitlab/push_options.rb @@ -6,9 +6,11 @@ module Gitlab merge_request: { keys: [ :create, + :description, :merge_when_pipeline_succeeds, :remove_source_branch, - :target + :target, + :title ] }, ci: { |