Class: API::MergeRequests

Inherits:
Base
  • Object
show all
Includes:
PaginationParams
Defined in:
lib/api/merge_requests.rb

Constant Summary collapse

CONTEXT_COMMITS_POST_LIMIT =
20

Constants included from Gitlab::EndpointAttributes

Gitlab::EndpointAttributes::DEFAULT_URGENCY

Class Method Summary collapse

Methods inherited from Base

endpoint_id_for_route, feature_category_for_app, path_for_app, route, urgency_for_app

Class Method Details

.update_params_at_least_one_ofObject


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/api/merge_requests.rb', line 34

def self.update_params_at_least_one_of
  %i[
    assignee_id
    assignee_ids
    reviewer_ids
    description
    labels
    add_labels
    remove_labels
    milestone_id
    remove_source_branch
    allow_collaboration
    allow_maintainer_to_push
    squash
    target_branch
    title
    state_event
    discussion_locked
  ]
end