2020-05-26 18:08:20 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class ReleaseSourceType < BaseObject
|
|
|
|
graphql_name 'ReleaseSource'
|
2020-06-18 06:08:33 +00:00
|
|
|
description 'Represents the source code attached to a release in a particular format'
|
2020-05-26 18:08:20 +00:00
|
|
|
|
2020-06-18 06:08:33 +00:00
|
|
|
authorize :download_code
|
2020-05-26 18:08:20 +00:00
|
|
|
|
|
|
|
field :format, GraphQL::STRING_TYPE, null: true,
|
|
|
|
description: 'Format of the source'
|
|
|
|
field :url, GraphQL::STRING_TYPE, null: true,
|
|
|
|
description: 'Download URL of the source'
|
|
|
|
end
|
|
|
|
end
|