module Gitlab::Client::MergeTrains

def add_merge_request_to_merge_train(project, merge_request_iid, options = {})

Returns:
  • (Array) -

Options Hash: (**options)
  • :squash (Boolean) -- If true, the commits are squashed into a single commit on merge.
  • :sha (String) -- If present, the SHA must match the HEAD of the source branch, otherwise the merge fails.
  • :when_pipeline_succeeds (Boolean) -- Add merge request to merge train when pipeline succeeds.

Parameters:
  • options (Hash) -- A customizable set of options.
  • merge_request_iid (Integer) -- The IID of the merge request.
  • project (Integer, String) -- The ID or name of a project.
def add_merge_request_to_merge_train(project, merge_request_iid, options = {})
  post("/projects/#{url_encode project}/merge_trains/merge_requests/#{merge_request_iid}", query: options)
end