Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_callout_feature_name_enum.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcb49a709eda5f2f0eabb63cb02b7ff180135e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Types
  class UserCalloutFeatureNameEnum < BaseEnum
    graphql_name 'UserCalloutFeatureNameEnum'
    description 'Name of the feature that the callout is for.'

    ::Users::Callout.feature_names.keys.each do |feature_name|
      value feature_name.upcase, value: feature_name, description: "Callout feature name for #{feature_name}."
    end
  end
end