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

commit_action_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b170134b3889295cdcb29a82979cb07fb36b97b0 (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
  class CommitActionType < BaseInputObject
    argument :action, type: Types::CommitActionModeEnum, required: true,
          description: 'The action to perform, create, delete, move, update, chmod.'
    argument :file_path, type: GraphQL::Types::String, required: true,
          description: 'Full path to the file.'
    argument :content, type: GraphQL::Types::String, required: false,
             description: 'Content of the file.'
    argument :previous_path, type: GraphQL::Types::String, required: false,
             description: 'Original full path to the file being moved.'
    argument :last_commit_id, type: GraphQL::Types::String, required: false,
             description: 'Last known file commit ID.'
    argument :execute_filemode, type: GraphQL::Types::Boolean, required: false,
             description: 'Enables/disables the execute flag on the file.'
    argument :encoding, type: Types::CommitEncodingEnum, required: false,
             description: 'Encoding of the file. Default is text.'
  end
end