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

diff_position_base_input_type.rb « notes « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e773fbbc8a16455a8fc71f98ccfdb9cea80f4a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Types
  module Notes
    class DiffPositionBaseInputType < BaseInputObject
      argument :head_sha, GraphQL::Types::String, required: true,
               description: copy_field_description(Types::DiffRefsType, :head_sha)
      argument :base_sha,  GraphQL::Types::String, required: false,
               description: copy_field_description(Types::DiffRefsType, :base_sha)
      argument :start_sha, GraphQL::Types::String, required: true,
               description: copy_field_description(Types::DiffRefsType, :start_sha)

      argument :paths,
               Types::DiffPathsInputType,
               required: true,
               description: 'The paths of the file that was changed. ' \
                            'Both of the properties of this input are optional, but at least one of them is required'
    end
  end
end