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
|
|
|
|
2021-07-23 12:09:05 +00:00
|
|
|
field :format, GraphQL::Types::String, null: true,
|
2022-08-03 06:10:47 +00:00
|
|
|
description: 'Format of the source.'
|
2021-07-23 12:09:05 +00:00
|
|
|
field :url, GraphQL::Types::String, null: true,
|
2022-08-03 06:10:47 +00:00
|
|
|
description: 'Download URL of the source.'
|
2020-05-26 18:08:20 +00:00
|
|
|
end
|
|
|
|
end
|