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/assets/javascripts/repository/queries/path_last_commit.query.graphql')
-rw-r--r--app/assets/javascripts/repository/queries/path_last_commit.query.graphql38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/queries/path_last_commit.query.graphql b/app/assets/javascripts/repository/queries/path_last_commit.query.graphql
new file mode 100644
index 00000000000..51f3f790a5d
--- /dev/null
+++ b/app/assets/javascripts/repository/queries/path_last_commit.query.graphql
@@ -0,0 +1,38 @@
+query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
+ project(fullPath: $projectPath) {
+ repository {
+ tree(path: $path, ref: $ref) {
+ lastCommit {
+ sha
+ title
+ titleHtml
+ descriptionHtml
+ message
+ webPath
+ authoredDate
+ authorName
+ authorGravatar
+ author {
+ name
+ avatarUrl
+ webPath
+ }
+ signatureHtml
+ pipelines(ref: $ref, first: 1) {
+ edges {
+ node {
+ detailedStatus {
+ detailsPath
+ icon
+ tooltip
+ text
+ group
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}