Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get_agents.query.graphql « queries « graphql « clusters_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a4f7b42eff4f243a96a3b3441c6290e1ff35bf6 (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
#import "../fragments/cluster_agent.fragment.graphql"

query getAgents($defaultBranchName: String!, $projectPath: ID!) {
  project(fullPath: $projectPath) {
    id
    clusterAgents {
      nodes {
        ...ClusterAgentFragment
      }
    }

    ciAccessAuthorizedAgents {
      nodes {
        agent {
          ...ClusterAgentFragment
        }
      }
    }

    userAccessAuthorizedAgents {
      nodes {
        agent {
          ...ClusterAgentFragment
        }
      }
    }

    repository {
      tree(path: ".gitlab/agents", ref: $defaultBranchName) {
        trees {
          nodes {
            id
            name
            path
            webPath
          }
        }
      }
    }
  }
}