debian-mirror-gitlab/app/graphql/resolvers/group_merge_requests_resolver.rb
2021-01-29 00:20:46 +05:30

27 lines
506 B
Ruby

# frozen_string_literal: true
module Resolvers
class GroupMergeRequestsResolver < MergeRequestsResolver
include GroupIssuableResolver
alias_method :group, :synchronized_object
type Types::MergeRequestType.connection_type, null: true
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