debian-mirror-gitlab/app/assets/javascripts/repository/queries/blob_info.query.graphql
2022-01-26 12:08:38 +05:30

58 lines
1.1 KiB
GraphQL

query getBlobInfo($projectPath: ID!, $filePath: String!, $ref: String!) {
project(fullPath: $projectPath) {
id
userPermissions {
pushCode
downloadCode
createMergeRequestIn
forkProject
}
pathLocks {
nodes {
id
path
user {
id
username
}
}
}
repository {
empty
blobs(paths: [$filePath], ref: $ref) {
nodes {
id
webPath
name
size
rawSize
rawTextBlob
fileType
path
editBlobPath
ideEditPath
forkAndEditPath
ideForkAndEditPath
canModifyBlob
canCurrentUserPushToBranch
storedExternally
rawPath
replacePath
pipelineEditorPath
simpleViewer {
fileType
tooLarge
type
renderError
}
richViewer {
fileType
tooLarge
type
renderError
}
}
}
}
}
}