summaryrefslogtreecommitdiff
path: root/app/graphql/types/diff_refs_type.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2019-07-10 05:52:18 +0000
committerJan Provaznik <jprovaznik@gitlab.com>2019-07-10 05:52:18 +0000
commit810df4fb51bf3db4016c5f7458599331d4586300 (patch)
tree6d034939842822b4173d99df698aed00a47fbe68 /app/graphql/types/diff_refs_type.rb
parent227d8b4445fa1257b525945a34a2e301369736a4 (diff)
parent073c8b25ea36b6b96eab05eb675e8726b1d5318e (diff)
downloadgitlab-ce-810df4fb51bf3db4016c5f7458599331d4586300.tar.gz
Merge branch '62826-graphql-note-mutations' into 'master'
GraphQL mutations for managing Notes See merge request gitlab-org/gitlab-ce!30210
Diffstat (limited to 'app/graphql/types/diff_refs_type.rb')
-rw-r--r--app/graphql/types/diff_refs_type.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/graphql/types/diff_refs_type.rb b/app/graphql/types/diff_refs_type.rb
new file mode 100644
index 00000000000..33a5780cd68
--- /dev/null
+++ b/app/graphql/types/diff_refs_type.rb
@@ -0,0 +1,14 @@
+# 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::STRING_TYPE, null: false, description: 'The sha of the head at the time the comment was made'
+ field :base_sha, GraphQL::STRING_TYPE, null: false, description: 'The merge base of the branch the comment was made on'
+ field :start_sha, GraphQL::STRING_TYPE, null: false, description: 'The sha of the branch being compared against'
+ end
+ # rubocop: enable Graphql/AuthorizeTypes
+end