debian-mirror-gitlab/app/graphql/resolvers/group_issues_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
495 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
2021-12-11 22:18:48 +05:30
# rubocop:disable Graphql/ResolverType (inherited from BaseIssuesResolver)
2020-10-24 23:57:45 +05:30
module Resolvers
2021-12-11 22:18:48 +05:30
class GroupIssuesResolver < BaseIssuesResolver
2022-05-07 20:08:51 +05:30
def self.issuable_collection_name
'issues'
end
2021-01-03 14:25:43 +05:30
2022-05-07 20:08:51 +05:30
include GroupIssuableResolver
2021-12-11 22:18:48 +05:30
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
2020-10-24 23:57:45 +05:30
end
end