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

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

module Types
  class ReleaseSourceType < BaseObject
    graphql_name 'ReleaseSource'
    description 'Represents the source code attached to a release in a particular format'

    authorize :download_code

    field :format, GraphQL::Types::String, null: true,
          description: 'Format of the source.'
    field :url, GraphQL::Types::String, null: true,
          description: 'Download URL of the source.'
  end
end