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

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

module Types
  class LabelType < BaseObject
    graphql_name 'Label'

    authorize :read_label

    field :description, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
    markdown_field :description_html, null: true
    field :title, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :color, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :text_color, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
  end
end