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

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

module Types
  class ReleaseLinkTypeEnum < BaseEnum
    graphql_name 'ReleaseLinkType'
    description 'Type of the link: `other`, `runbook`, `image`, `package`; defaults to `other`'

    ::Releases::Link.link_types.keys.each do |link_type|
      value link_type.upcase, value: link_type, description: "#{link_type.titleize} link type"
    end
  end
end