summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql
blob: e8f2a2cdf7fd1bffdb033eb9187e547e256d04f3 (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 getEnvironmentDetails($projectFullPath: ID!, $environmentName: String, $pageSize: Int) {
  project(fullPath: $projectFullPath) {
    id
    name
    fullPath
    environment(name: $environmentName) {
      id
      name
      deployments(orderBy: { createdAt: DESC }, first: $pageSize) {
        nodes {
          id
          iid
          status
          ref
          tag
          job {
            name
            id
            webPath
          }
          commit {
            id
            shortId
            message
            webUrl
            authorGravatar
            authorName
            authorEmail
            author {
              id
              name
              avatarUrl
              webUrl
            }
          }
          triggerer {
            id
            webUrl
            name
            avatarUrl
          }
          createdAt
          finishedAt
        }
      }
    }
  }
}