summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/queries/path_last_commit.query.graphql
blob: 51f3f790a5d7efd4b79a38c6aba12c1a1748017c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
                }
              }
            }
          }
        }
      }
    }
  }
}