debian-mirror-gitlab/app/graphql/types/release_source_type.rb

16 lines
450 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
module Types
class ReleaseSourceType < BaseObject
graphql_name 'ReleaseSource'
2020-07-28 23:09:34 +05:30
description 'Represents the source code attached to a release in a particular format'
2020-06-23 00:09:42 +05:30
2020-07-28 23:09:34 +05:30
authorize :download_code
2020-06-23 00:09:42 +05:30
field :format, GraphQL::STRING_TYPE, null: true,
2021-03-11 19:13:27 +05:30
description: 'Format of the source.'
2020-06-23 00:09:42 +05:30
field :url, GraphQL::STRING_TYPE, null: true,
2021-03-11 19:13:27 +05:30
description: 'Download URL of the source.'
2020-06-23 00:09:42 +05:30
end
end