summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/runner/graphql/details/runner_jobs.query.graphql
blob: 2b1decd3dddbd3aea802f93e3d0fb53f374e11f8 (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
#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"

query getRunnerJobs($id: CiRunnerID!, $first: Int, $last: Int, $before: String, $after: String) {
  runner(id: $id) {
    id
    projectCount
    jobs(before: $before, after: $after, first: $first, last: $last) {
      nodes {
        id
        detailedStatus {
          # fields for `<ci-badge>`
          id
          detailsPath
          group
          icon
          text
        }
        pipeline {
          id
          project {
            id
            name
            webUrl
          }
        }
        shortSha
        commitPath
        tags
        finishedAt
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}