summaryrefslogtreecommitdiff
path: root/app/graphql/types/diff_paths_input_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/diff_paths_input_type.rb')
-rw-r--r--app/graphql/types/diff_paths_input_type.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/graphql/types/diff_paths_input_type.rb b/app/graphql/types/diff_paths_input_type.rb
new file mode 100644
index 00000000000..43feddd9827
--- /dev/null
+++ b/app/graphql/types/diff_paths_input_type.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module Types
+ # rubocop: disable Graphql/AuthorizeTypes
+ class DiffPathsInputType < BaseInputObject
+ argument :old_path, GraphQL::STRING_TYPE, required: false,
+ description: 'The path of the file on the start sha'
+ argument :new_path, GraphQL::STRING_TYPE, required: false,
+ description: 'The path of the file on the head sha'
+ end
+ # rubocop: enable Graphql/AuthorizeTypes
+end