2020-10-05 14:08:51 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class GroupMergeRequestsResolver < MergeRequestsResolver
|
|
|
|
include GroupIssuableResolver
|
|
|
|
|
|
|
|
alias_method :group, :synchronized_object
|
|
|
|
|
2020-11-17 07:09:15 -05:00
|
|
|
type Types::MergeRequestType.connection_type, null: true
|
|
|
|
|
2020-10-05 14:08:51 -04:00
|
|
|
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
|