2019-10-12 21:52:04 +05:30
|
|
|
#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
|
|
|
|
|
2019-09-04 21:01:54 +05:30
|
|
|
fragment TreeEntry on Entry {
|
|
|
|
id
|
2019-12-26 22:10:19 +05:30
|
|
|
sha
|
2019-09-30 21:07:59 +05:30
|
|
|
name
|
2019-09-04 21:01:54 +05:30
|
|
|
flatPath
|
|
|
|
type
|
|
|
|
}
|
|
|
|
|
|
|
|
query getFiles(
|
|
|
|
$projectPath: ID!
|
|
|
|
$path: String
|
|
|
|
$ref: String!
|
|
|
|
$pageSize: Int!
|
|
|
|
$nextPageCursor: String
|
2020-03-09 13:42:32 +05:30
|
|
|
$vueLfsEnabled: Boolean = false
|
2019-09-04 21:01:54 +05:30
|
|
|
) {
|
|
|
|
project(fullPath: $projectPath) {
|
|
|
|
repository {
|
|
|
|
tree(path: $path, ref: $ref) {
|
|
|
|
trees(first: $pageSize, after: $nextPageCursor) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
...TreeEntry
|
|
|
|
webUrl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
...PageInfo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
submodules(first: $pageSize, after: $nextPageCursor) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
...TreeEntry
|
2019-09-30 21:07:59 +05:30
|
|
|
webUrl
|
|
|
|
treeUrl
|
2019-09-04 21:01:54 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
...PageInfo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
blobs(first: $pageSize, after: $nextPageCursor) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
...TreeEntry
|
|
|
|
webUrl
|
2020-03-09 13:42:32 +05:30
|
|
|
lfsOid @include(if: $vueLfsEnabled)
|
2019-09-04 21:01:54 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
...PageInfo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|