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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/notes/diff_position_type.rb')
-rw-r--r--app/graphql/types/notes/diff_position_type.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/graphql/types/notes/diff_position_type.rb b/app/graphql/types/notes/diff_position_type.rb
index 13d9be49484..67747a13dcf 100644
--- a/app/graphql/types/notes/diff_position_type.rb
+++ b/app/graphql/types/notes/diff_position_type.rb
@@ -8,32 +8,32 @@ module Types
graphql_name 'DiffPosition'
field :diff_refs, Types::DiffRefsType, null: false,
- description: 'Information about the branch, HEAD, and base at the time of commenting'
+ description: 'Information about the branch, HEAD, and base at the time of commenting.'
field :file_path, GraphQL::STRING_TYPE, null: false,
- description: 'Path of the file that was changed'
+ description: 'Path of the file that was changed.'
field :old_path, GraphQL::STRING_TYPE, null: true,
- description: 'Path of the file on the start SHA'
+ description: 'Path of the file on the start SHA.'
field :new_path, GraphQL::STRING_TYPE, null: true,
- description: 'Path of the file on the HEAD SHA'
+ description: 'Path of the file on the HEAD SHA.'
field :position_type, Types::Notes::PositionTypeEnum, null: false,
- description: 'Type of file the position refers to'
+ description: 'Type of file the position refers to.'
# Fields for text positions
field :old_line, GraphQL::INT_TYPE, null: true,
- description: 'Line on start SHA that was changed'
+ description: 'Line on start SHA that was changed.'
field :new_line, GraphQL::INT_TYPE, null: true,
- description: 'Line on HEAD SHA that was changed'
+ description: 'Line on HEAD SHA that was changed.'
# Fields for image positions
field :x, GraphQL::INT_TYPE, null: true,
- description: 'X position of the note'
+ description: 'X position of the note.'
field :y, GraphQL::INT_TYPE, null: true,
- description: 'Y position of the note'
+ description: 'Y position of the note.'
field :width, GraphQL::INT_TYPE, null: true,
- description: 'Total width of the image'
+ description: 'Total width of the image.'
field :height, GraphQL::INT_TYPE, null: true,
- description: 'Total height of the image'
+ description: 'Total height of the image.'
def old_line
object.old_line if object.on_text?