debian-mirror-gitlab/app/assets/javascripts/repository/queries/blob_info.query.graphql
2022-08-27 11:52:29 +05:30

66 lines
1.4 KiB
GraphQL

#import "ee_else_ce/repository/queries/path_locks.fragment.graphql"
query getBlobInfo(
$projectPath: ID!
$filePath: String!
$ref: String!
$shouldFetchRawText: Boolean!
) {
project(fullPath: $projectPath) {
userPermissions {
pushCode
downloadCode
createMergeRequestIn
forkProject
}
...ProjectPathLocksFragment
repository {
empty
blobs(paths: [$filePath], ref: $ref) {
nodes {
id
webPath
name
size
rawSize
rawTextBlob @include(if: $shouldFetchRawText)
fileType
language
path
blamePath
editBlobPath
gitpodBlobUrl
ideEditPath
forkAndEditPath
ideForkAndEditPath
codeNavigationPath
projectBlobPathRoot
forkAndViewPath
environmentFormattedExternalUrl
environmentExternalUrlForRouteMap
canModifyBlob
canCurrentUserPushToBranch
archived
storedExternally
externalStorage
externalStorageUrl
rawPath
replacePath
pipelineEditorPath
simpleViewer {
fileType
tooLarge
type
renderError
}
richViewer {
fileType
tooLarge
type
renderError
}
}
}
}
}
}