debian-mirror-gitlab/app/graphql/resolvers/group_issues_resolver.rb
2021-12-11 22:18:48 +05:30

18 lines
465 B
Ruby

# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType (inherited from BaseIssuesResolver)
module Resolvers
class GroupIssuesResolver < BaseIssuesResolver
include GroupIssuableResolver
include_subgroups 'issues'
def ready?(**args)
if args.dig(:not, :release_tag).present?
raise ::Gitlab::Graphql::Errors::ArgumentError, 'releaseTag filter is not allowed when parent is a group.'
end
super
end
end
end