645e8d4705
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
22 lines
502 B
Ruby
22 lines
502 B
Ruby
# Finders::MergeRequest class
|
|
#
|
|
# Used to filter MergeRequests collections by set of params
|
|
#
|
|
# Arguments:
|
|
# current_user - which user use
|
|
# params:
|
|
# scope: 'created-by-me' or 'assigned-to-me' or 'all'
|
|
# state: 'open' or 'closed' or 'all'
|
|
# group_id: integer
|
|
# project_id: integer
|
|
# milestone_id: integer
|
|
# assignee_id: integer
|
|
# search: string
|
|
# label_name: string
|
|
# sort: string
|
|
#
|
|
class MergeRequestsFinder < BaseFinder
|
|
def klass
|
|
MergeRequest
|
|
end
|
|
end
|