|
|
@ -43,11 +43,11 @@ class Gitlab::Client
|
|
|
|
# @option options [String] :target_branch (required) The target branch name.
|
|
|
|
# @option options [String] :target_branch (required) The target branch name.
|
|
|
|
# @option options [Integer] :assignee_id (optional) The ID of a user to assign merge request.
|
|
|
|
# @option options [Integer] :assignee_id (optional) The ID of a user to assign merge request.
|
|
|
|
# @return [Gitlab::ObjectifiedHash] Information about created merge request.
|
|
|
|
# @return [Gitlab::ObjectifiedHash] Information about created merge request.
|
|
|
|
def create_merge_request(project, title, options={})
|
|
|
|
def create_merge_request(project, title, gid, options={})
|
|
|
|
check_attributes!(options, [:source_branch, :target_branch])
|
|
|
|
check_attributes!(options, [:source_branch, :target_branch])
|
|
|
|
|
|
|
|
|
|
|
|
body = {:title => title}.merge(options)
|
|
|
|
body = {:title => title}.merge(options)
|
|
|
|
post("/projects/#{project}/merge_requests", :body => body)
|
|
|
|
post("/projects/#{project}/merge_requests?user_id=#{gid}", :body => body)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Updates a merge request.
|
|
|
|
# Updates a merge request.
|
|
|
|