summaryrefslogtreecommitdiff
path: root/app/graphql/queries/repository/path_last_commit.query.graphql
blob: b5c5f6534298db02f2a14f7f35244f0a57863336 (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
39
40
41
42
43
44
45
46
47
48
query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
  project(fullPath: $projectPath) {
    id
    __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
                }
              }
            }
          }
        }
      }
    }
  }
}