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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 10:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 10:08:36 +0300
commit48aff82709769b098321c738f3444b9bdaa694c6 (patch)
treee00c7c43e2d9b603a5a6af576b1685e400410dee /app/graphql/queries/repository/path_last_commit.query.graphql
parent879f5329ee916a948223f8f43d77fba4da6cd028 (diff)
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'app/graphql/queries/repository/path_last_commit.query.graphql')
-rw-r--r--app/graphql/queries/repository/path_last_commit.query.graphql47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/graphql/queries/repository/path_last_commit.query.graphql b/app/graphql/queries/repository/path_last_commit.query.graphql
new file mode 100644
index 00000000000..d845f7c6224
--- /dev/null
+++ b/app/graphql/queries/repository/path_last_commit.query.graphql
@@ -0,0 +1,47 @@
+query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
+ project(fullPath: $projectPath) {
+ __typename
+ repository {
+ __typename
+ tree(path: $path, ref: $ref) {
+ __typename
+ lastCommit {
+ __typename
+ sha
+ title
+ titleHtml
+ descriptionHtml
+ message
+ webPath
+ authoredDate
+ authorName
+ authorGravatar
+ author {
+ __typename
+ name
+ avatarUrl
+ webPath
+ }
+ signatureHtml
+ pipelines(ref: $ref, first: 1) {
+ __typename
+ edges {
+ __typename
+ node {
+ __typename
+ detailedStatus {
+ __typename
+ detailsPath
+ icon
+ tooltip
+ text
+ group
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}