diff options
Diffstat (limited to 'app/graphql/types/repository/blob_type.rb')
-rw-r--r-- | app/graphql/types/repository/blob_type.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/graphql/types/repository/blob_type.rb b/app/graphql/types/repository/blob_type.rb index bfd59763a07..652e2882584 100644 --- a/app/graphql/types/repository/blob_type.rb +++ b/app/graphql/types/repository/blob_type.rb @@ -41,6 +41,9 @@ module Types field :ide_fork_and_edit_path, GraphQL::Types::String, null: true, description: 'Web path to edit this blob in the Web IDE using a forked project.' + field :fork_and_view_path, GraphQL::Types::String, null: true, + description: 'Web path to view this blob using a forked project.' + field :size, GraphQL::Types::Int, null: true, description: 'Size (in bytes) of the blob.' @@ -74,6 +77,9 @@ module Types field :pipeline_editor_path, GraphQL::Types::String, null: true, description: 'Web path to edit .gitlab-ci.yml file.' + field :gitpod_blob_url, GraphQL::Types::String, null: true, + description: 'URL to the blob within Gitpod.' + field :find_file_path, GraphQL::Types::String, null: true, description: 'Web path to find file.' @@ -131,6 +137,12 @@ module Types null: true, calls_gitaly: true + field :code_navigation_path, GraphQL::Types::String, null: true, calls_gitaly: true, + description: 'Web path for code navigation.' + + field :project_blob_path_root, GraphQL::Types::String, null: true, + description: 'Web path for the root of the blob.' + def raw_text_blob object.data unless object.binary? end |