debian-mirror-gitlab/app/assets/javascripts/repository/queries/blob_info.query.graphql
2022-03-02 08:16:31 +05:30

52 lines
1.1 KiB
GraphQL

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