2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class GroupMergeRequestsResolver < MergeRequestsResolver
|
|
|
|
include GroupIssuableResolver
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
alias_method :group, :object
|
2021-01-03 14:25:43 +05:30
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
type Types::MergeRequestType.connection_type, null: true
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
include_subgroups 'merge requests'
|
|
|
|
accept_assignee
|
|
|
|
accept_author
|
|
|
|
|
|
|
|
def project
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def mr_parent
|
|
|
|
group
|
|
|
|
end
|
|
|
|
|
|
|
|
def no_results_possible?(args)
|
|
|
|
group.nil? || some_argument_is_empty?(args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|