debian-mirror-gitlab/app/assets/javascripts/repository/queries/blob_info.query.graphql

66 lines
1.4 KiB
GraphQL
Raw Normal View History

2022-03-02 08:16:31 +05:30
#import "ee_else_ce/repository/queries/path_locks.fragment.graphql"
2022-04-04 11:22:00 +05:30
query getBlobInfo(
$projectPath: ID!
$filePath: String!
$ref: String!
$shouldFetchRawText: Boolean!
) {
2021-04-29 21:17:54 +05:30
project(fullPath: $projectPath) {
2021-09-30 23:02:18 +05:30
userPermissions {
pushCode
2021-10-27 15:23:28 +05:30
downloadCode
2021-11-18 22:05:49 +05:30
createMergeRequestIn
forkProject
2021-10-27 15:23:28 +05:30
}
2022-03-02 08:16:31 +05:30
...ProjectPathLocksFragment
2021-04-29 21:17:54 +05:30
repository {
2021-09-30 23:02:18 +05:30
empty
2021-10-27 15:23:28 +05:30
blobs(paths: [$filePath], ref: $ref) {
2021-06-08 01:23:25 +05:30
nodes {
2022-01-26 12:08:38 +05:30
id
2021-06-08 01:23:25 +05:30
webPath
name
size
rawSize
2022-04-04 11:22:00 +05:30
rawTextBlob @include(if: $shouldFetchRawText)
2021-06-08 01:23:25 +05:30
fileType
2022-04-04 11:22:00 +05:30
language
2021-06-08 01:23:25 +05:30
path
editBlobPath
2022-05-07 20:08:51 +05:30
gitpodBlobUrl
2021-09-04 01:27:46 +05:30
ideEditPath
2021-11-18 22:05:49 +05:30
forkAndEditPath
ideForkAndEditPath
2022-05-07 20:08:51 +05:30
codeNavigationPath
projectBlobPathRoot
forkAndViewPath
2022-04-04 11:22:00 +05:30
environmentFormattedExternalUrl
environmentExternalUrlForRouteMap
2021-11-18 22:05:49 +05:30
canModifyBlob
2022-01-26 12:08:38 +05:30
canCurrentUserPushToBranch
2022-03-02 08:16:31 +05:30
archived
2021-06-08 01:23:25 +05:30
storedExternally
2022-03-02 08:16:31 +05:30
externalStorage
2022-04-04 11:22:00 +05:30
externalStorageUrl
2021-06-08 01:23:25 +05:30
rawPath
replacePath
2021-12-11 22:18:48 +05:30
pipelineEditorPath
2021-06-08 01:23:25 +05:30
simpleViewer {
fileType
tooLarge
type
renderError
}
richViewer {
fileType
tooLarge
type
renderError
}
}
2021-04-29 21:17:54 +05:30
}
}
}
}