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

18 lines
657 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
module Types
# rubocop: disable Graphql/AuthorizeTypes
# Types that use DiffRefsType should have their own authorization
class DiffRefsType < BaseObject
graphql_name 'DiffRefs'
2020-01-01 13:55:28 +05:30
field :head_sha, GraphQL::STRING_TYPE, null: false,
2021-03-11 19:13:27 +05:30
description: 'SHA of the HEAD at the time the comment was made.'
2020-03-07 23:17:34 +05:30
field :base_sha, GraphQL::STRING_TYPE, null: true,
2021-03-11 19:13:27 +05:30
description: 'Merge base of the branch the comment was made on.'
2020-01-01 13:55:28 +05:30
field :start_sha, GraphQL::STRING_TYPE, null: false,
2021-03-11 19:13:27 +05:30
description: 'SHA of the branch being compared against.'
2019-09-30 21:07:59 +05:30
end
# rubocop: enable Graphql/AuthorizeTypes
end