summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/queries/pathLastCommit.query.graphql
blob: c812614e94ded832d75eeed61f8888fd6cde0ea4 (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
query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
  project(fullPath: $projectPath) {
    repository {
      tree(path: $path, ref: $ref) {
        lastCommit {
          sha
          title
          description
          message
          webUrl
          authoredDate
          authorName
          author {
            name
            avatarUrl
            webUrl
          }
          signatureHtml
          pipelines(ref: $ref, first: 1) {
            edges {
              node {
                detailedStatus {
                  detailsPath
                  icon
                  tooltip
                  text
                  group
                }
              }
            }
          }
        }
      }
    }
  }
}