Welcome to mirror list, hosted at ThFree Co, Russian Federation.

diff_refs_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b19d09c789cdf970b56f90f944ccc7ba4fb06413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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'

    field :head_sha, GraphQL::Types::String, null: false,
          description: 'SHA of the HEAD at the time the comment was made.'
    field :base_sha, GraphQL::Types::String, null: true,
          description: 'Merge base of the branch the comment was made on.'
    field :start_sha, GraphQL::Types::String, null: false,
          description: 'SHA of the branch being compared against.'
  end
  # rubocop: enable Graphql/AuthorizeTypes
end