summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql
blob: b6d6996a8577f720eaf362da751fa07930055c09 (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
#import "~/graphql_shared/fragments/page_info.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-link>`
          id
          detailsPath
          group
          icon
          text
        }
        project {
          id
          name
          webUrl
        }
        shortSha
        commitPath
        finishedAt
        duration
        queuedDuration
        tags
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}