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

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

module Types
  module WorkItems
    class WidgetTypeEnum < BaseEnum
      graphql_name 'WorkItemWidgetType'
      description 'Type of a work item widget'

      ::WorkItems::Type.available_widgets.each do |widget|
        value widget.type.to_s.upcase, value: widget.type, description: "#{widget.type.to_s.titleize} widget."
      end
    end
  end
end