diff options
Diffstat (limited to 'app/assets/javascripts/repository/queries/blob_info.query.graphql')
-rw-r--r-- | app/assets/javascripts/repository/queries/blob_info.query.graphql | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app/assets/javascripts/repository/queries/blob_info.query.graphql b/app/assets/javascripts/repository/queries/blob_info.query.graphql index ae20a0f0bc4..78323fdc5f4 100644 --- a/app/assets/javascripts/repository/queries/blob_info.query.graphql +++ b/app/assets/javascripts/repository/queries/blob_info.query.graphql @@ -1,6 +1,11 @@ #import "ee_else_ce/repository/queries/path_locks.fragment.graphql" -query getBlobInfo($projectPath: ID!, $filePath: String!, $ref: String!) { +query getBlobInfo( + $projectPath: ID! + $filePath: String! + $ref: String! + $shouldFetchRawText: Boolean! +) { project(fullPath: $projectPath) { userPermissions { pushCode @@ -18,18 +23,22 @@ query getBlobInfo($projectPath: ID!, $filePath: String!, $ref: String!) { name size rawSize - rawTextBlob + rawTextBlob @include(if: $shouldFetchRawText) fileType + language path editBlobPath ideEditPath forkAndEditPath ideForkAndEditPath + environmentFormattedExternalUrl + environmentExternalUrlForRouteMap canModifyBlob canCurrentUserPushToBranch archived storedExternally externalStorage + externalStorageUrl rawPath replacePath pipelineEditorPath |