summaryrefslogtreecommitdiff
path: root/app/graphql/types/tree
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/tree')
-rw-r--r--app/graphql/types/tree/blob_type.rb8
-rw-r--r--app/graphql/types/tree/entry_type.rb12
-rw-r--r--app/graphql/types/tree/submodule_type.rb4
-rw-r--r--app/graphql/types/tree/tree_entry_type.rb4
-rw-r--r--app/graphql/types/tree/tree_type.rb8
5 files changed, 18 insertions, 18 deletions
diff --git a/app/graphql/types/tree/blob_type.rb b/app/graphql/types/tree/blob_type.rb
index a7b90d2533b..3823bd94083 100644
--- a/app/graphql/types/tree/blob_type.rb
+++ b/app/graphql/types/tree/blob_type.rb
@@ -11,13 +11,13 @@ module Types
graphql_name 'Blob'
field :web_url, GraphQL::STRING_TYPE, null: true,
- description: 'Web URL of the blob'
+ description: 'Web URL of the blob.'
field :web_path, GraphQL::STRING_TYPE, null: true,
- description: 'Web path of the blob'
+ description: 'Web path of the blob.'
field :lfs_oid, GraphQL::STRING_TYPE, null: true,
- description: 'LFS ID of the blob'
+ description: 'LFS ID of the blob.'
field :mode, GraphQL::STRING_TYPE, null: true,
- description: 'Blob mode in numeric format'
+ description: 'Blob mode in numeric format.'
def lfs_oid
Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(object.repository, object.id).find
diff --git a/app/graphql/types/tree/entry_type.rb b/app/graphql/types/tree/entry_type.rb
index b40e38ec9d1..c0150b77c55 100644
--- a/app/graphql/types/tree/entry_type.rb
+++ b/app/graphql/types/tree/entry_type.rb
@@ -5,17 +5,17 @@ module Types
include Types::BaseInterface
field :id, GraphQL::ID_TYPE, null: false,
- description: 'ID of the entry'
+ description: 'ID of the entry.'
field :sha, GraphQL::STRING_TYPE, null: false,
- description: 'Last commit sha for the entry', method: :id
+ description: 'Last commit SHA for the entry.', method: :id
field :name, GraphQL::STRING_TYPE, null: false,
- description: 'Name of the entry'
+ description: 'Name of the entry.'
field :type, Tree::TypeEnum, null: false,
- description: 'Type of tree entry'
+ description: 'Type of tree entry.'
field :path, GraphQL::STRING_TYPE, null: false,
- description: 'Path of the entry'
+ description: 'Path of the entry.'
field :flat_path, GraphQL::STRING_TYPE, null: false,
- description: 'Flat path of the entry'
+ description: 'Flat path of the entry.'
end
end
end
diff --git a/app/graphql/types/tree/submodule_type.rb b/app/graphql/types/tree/submodule_type.rb
index d41fa4afd4b..519e866ebb0 100644
--- a/app/graphql/types/tree/submodule_type.rb
+++ b/app/graphql/types/tree/submodule_type.rb
@@ -9,9 +9,9 @@ module Types
graphql_name 'Submodule'
field :web_url, type: GraphQL::STRING_TYPE, null: true,
- description: 'Web URL for the sub-module'
+ description: 'Web URL for the sub-module.'
field :tree_url, type: GraphQL::STRING_TYPE, null: true,
- description: 'Tree URL for the sub-module'
+ description: 'Tree URL for the sub-module.'
end
# rubocop: enable Graphql/AuthorizeTypes
end
diff --git a/app/graphql/types/tree/tree_entry_type.rb b/app/graphql/types/tree/tree_entry_type.rb
index aff2e025761..daf4b5421fb 100644
--- a/app/graphql/types/tree/tree_entry_type.rb
+++ b/app/graphql/types/tree/tree_entry_type.rb
@@ -12,9 +12,9 @@ module Types
description 'Represents a directory'
field :web_url, GraphQL::STRING_TYPE, null: true,
- description: 'Web URL for the tree entry (directory)'
+ description: 'Web URL for the tree entry (directory).'
field :web_path, GraphQL::STRING_TYPE, null: true,
- description: 'Web path for the tree entry (directory)'
+ description: 'Web path for the tree entry (directory).'
end
# rubocop: enable Graphql/AuthorizeTypes
end
diff --git a/app/graphql/types/tree/tree_type.rb b/app/graphql/types/tree/tree_type.rb
index fecd6c0f309..011cff0c89c 100644
--- a/app/graphql/types/tree/tree_type.rb
+++ b/app/graphql/types/tree/tree_type.rb
@@ -9,17 +9,17 @@ module Types
# Complexity 10 as it triggers a Gitaly call on each render
field :last_commit, Types::CommitType,
null: true, complexity: 10, calls_gitaly: true, resolver: Resolvers::LastCommitResolver,
- description: 'Last commit for the tree'
+ description: 'Last commit for the tree.'
field :trees, Types::Tree::TreeEntryType.connection_type, null: false,
- description: 'Trees of the tree'
+ description: 'Trees of the tree.'
field :submodules, Types::Tree::SubmoduleType.connection_type, null: false,
- description: 'Sub-modules of the tree',
+ description: 'Sub-modules of the tree.',
calls_gitaly: true
field :blobs, Types::Tree::BlobType.connection_type, null: false,
- description: 'Blobs of the tree',
+ description: 'Blobs of the tree.',
calls_gitaly: true
def trees