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: 6f6d6a418dc1628aa781838ed62a203a3d0e1fb4 (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: 'Action to perform: create, delete, move, update, or 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