diff options
Diffstat (limited to 'app/assets/javascripts/repository/queries')
-rw-r--r-- | app/assets/javascripts/repository/queries/getCommit.query.graphql | 10 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/getCommits.query.graphql | 10 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/getFiles.query.graphql (renamed from app/assets/javascripts/repository/queries/getFiles.graphql) | 1 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/getProjectPath.query.graphql (renamed from app/assets/javascripts/repository/queries/getProjectPath.graphql) | 0 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/getProjectShortPath.query.graphql (renamed from app/assets/javascripts/repository/queries/getProjectShortPath.graphql) | 0 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/getRef.query.graphql (renamed from app/assets/javascripts/repository/queries/getRef.graphql) | 0 | ||||
-rw-r--r-- | app/assets/javascripts/repository/queries/pathLastCommit.query.graphql | 29 |
7 files changed, 50 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/queries/getCommit.query.graphql b/app/assets/javascripts/repository/queries/getCommit.query.graphql new file mode 100644 index 00000000000..e2a2d831e47 --- /dev/null +++ b/app/assets/javascripts/repository/queries/getCommit.query.graphql @@ -0,0 +1,10 @@ +query getCommit($fileName: String!, $type: String!, $path: String!) { + commit(path: $path, fileName: $fileName, type: $type) @client { + sha + message + committedDate + commitPath + fileName + type + } +} diff --git a/app/assets/javascripts/repository/queries/getCommits.query.graphql b/app/assets/javascripts/repository/queries/getCommits.query.graphql new file mode 100644 index 00000000000..df9e67cc440 --- /dev/null +++ b/app/assets/javascripts/repository/queries/getCommits.query.graphql @@ -0,0 +1,10 @@ +query getCommits { + commits @client { + sha + message + committedDate + commitPath + fileName + type + } +} diff --git a/app/assets/javascripts/repository/queries/getFiles.graphql b/app/assets/javascripts/repository/queries/getFiles.query.graphql index ef924fde556..4c24fc4087f 100644 --- a/app/assets/javascripts/repository/queries/getFiles.graphql +++ b/app/assets/javascripts/repository/queries/getFiles.query.graphql @@ -1,5 +1,6 @@ fragment TreeEntry on Entry { id + name flatPath type } diff --git a/app/assets/javascripts/repository/queries/getProjectPath.graphql b/app/assets/javascripts/repository/queries/getProjectPath.query.graphql index 74e73e07577..74e73e07577 100644 --- a/app/assets/javascripts/repository/queries/getProjectPath.graphql +++ b/app/assets/javascripts/repository/queries/getProjectPath.query.graphql diff --git a/app/assets/javascripts/repository/queries/getProjectShortPath.graphql b/app/assets/javascripts/repository/queries/getProjectShortPath.query.graphql index 34eb26598c2..34eb26598c2 100644 --- a/app/assets/javascripts/repository/queries/getProjectShortPath.graphql +++ b/app/assets/javascripts/repository/queries/getProjectShortPath.query.graphql diff --git a/app/assets/javascripts/repository/queries/getRef.graphql b/app/assets/javascripts/repository/queries/getRef.query.graphql index 58c09844c3f..58c09844c3f 100644 --- a/app/assets/javascripts/repository/queries/getRef.graphql +++ b/app/assets/javascripts/repository/queries/getRef.query.graphql diff --git a/app/assets/javascripts/repository/queries/pathLastCommit.query.graphql b/app/assets/javascripts/repository/queries/pathLastCommit.query.graphql new file mode 100644 index 00000000000..3bdfd979fa4 --- /dev/null +++ b/app/assets/javascripts/repository/queries/pathLastCommit.query.graphql @@ -0,0 +1,29 @@ +query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) { + project(fullPath: $projectPath) { + repository { + tree(path: $path, ref: $ref) { + lastCommit { + sha + title + message + webUrl + authoredDate + author { + name + avatarUrl + webUrl + } + latestPipeline { + detailedStatus { + detailsPath + icon + tooltip + text + group + } + } + } + } + } + } +} |