Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/queries')
-rw-r--r--app/graphql/queries/repository/blob_info.query.graphql3
-rw-r--r--app/graphql/queries/repository/files.query.graphql3
-rw-r--r--app/graphql/queries/repository/paginated_tree.query.graphql10
-rw-r--r--app/graphql/queries/repository/path_last_commit.query.graphql4
4 files changed, 14 insertions, 6 deletions
diff --git a/app/graphql/queries/repository/blob_info.query.graphql b/app/graphql/queries/repository/blob_info.query.graphql
index fd463436ed4..7419961a564 100644
--- a/app/graphql/queries/repository/blob_info.query.graphql
+++ b/app/graphql/queries/repository/blob_info.query.graphql
@@ -2,6 +2,7 @@ query getBlobInfo(
$projectPath: ID!
$filePath: String!
$ref: String!
+ $refType: RefType
$shouldFetchRawText: Boolean!
) {
project(fullPath: $projectPath) {
@@ -10,7 +11,7 @@ query getBlobInfo(
repository {
__typename
empty
- blobs(paths: [$filePath], ref: $ref) {
+ blobs(paths: [$filePath], ref: $ref, refType: $refType) {
__typename
nodes {
__typename
diff --git a/app/graphql/queries/repository/files.query.graphql b/app/graphql/queries/repository/files.query.graphql
index a83880ce696..bd7bb8ba787 100644
--- a/app/graphql/queries/repository/files.query.graphql
+++ b/app/graphql/queries/repository/files.query.graphql
@@ -19,6 +19,7 @@ query getFiles(
$projectPath: ID!
$path: String
$ref: String!
+ $refType: RefType
$pageSize: Int!
$nextPageCursor: String
) {
@@ -27,7 +28,7 @@ query getFiles(
__typename
repository {
__typename
- tree(path: $path, ref: $ref) {
+ tree(path: $path, ref: $ref, refType: $refType) {
__typename
trees(first: $pageSize, after: $nextPageCursor) {
__typename
diff --git a/app/graphql/queries/repository/paginated_tree.query.graphql b/app/graphql/queries/repository/paginated_tree.query.graphql
index e82bc6d0734..68aa90046b9 100644
--- a/app/graphql/queries/repository/paginated_tree.query.graphql
+++ b/app/graphql/queries/repository/paginated_tree.query.graphql
@@ -7,13 +7,19 @@ fragment TreeEntry on Entry {
type
}
-query getPaginatedTree($projectPath: ID!, $path: String, $ref: String!, $nextPageCursor: String) {
+query getPaginatedTree(
+ $projectPath: ID!
+ $path: String
+ $ref: String!
+ $nextPageCursor: String
+ $refType: RefType
+) {
project(fullPath: $projectPath) {
id
__typename
repository {
__typename
- paginatedTree(path: $path, ref: $ref, after: $nextPageCursor) {
+ paginatedTree(path: $path, ref: $ref, refType: $refType, after: $nextPageCursor) {
__typename
pageInfo {
__typename
diff --git a/app/graphql/queries/repository/path_last_commit.query.graphql b/app/graphql/queries/repository/path_last_commit.query.graphql
index facbf1555fc..738fdf534cb 100644
--- a/app/graphql/queries/repository/path_last_commit.query.graphql
+++ b/app/graphql/queries/repository/path_last_commit.query.graphql
@@ -1,10 +1,10 @@
-query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
+query pathLastCommit($projectPath: ID!, $path: String, $ref: String!, $refType: RefType) {
project(fullPath: $projectPath) {
__typename
id
repository {
__typename
- paginatedTree(path: $path, ref: $ref) {
+ paginatedTree(path: $path, ref: $ref, refType: $refType) {
__typename
nodes {
__typename