module Gitlab::Client::MergeRequests

def accept_merge_request(project, id, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about updated merge request.

Options Hash: (**options)
  • :merge_commit_message (String) -- Custom merge commit message

Parameters:
  • options (Hash) -- A customizable set of options.
  • id (Integer) -- The ID of a merge request.
  • project (Integer, String) -- The ID or name of a project.
def accept_merge_request(project, id, options = {})
  put("/projects/#{url_encode project}/merge_requests/#{id}/merge", body: options)
end