debian-mirror-gitlab/app/graphql/resolvers/group_issues_resolver.rb
2022-05-07 20:08:51 +05:30

20 lines
495 B
Ruby

# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType (inherited from BaseIssuesResolver)
module Resolvers
class GroupIssuesResolver < BaseIssuesResolver
def self.issuable_collection_name
'issues'
end
include GroupIssuableResolver
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