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

16 lines
448 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,
description: 'Format of the source'
field :url, GraphQL::STRING_TYPE, null: true,
description: 'Download URL of the source'
end
end