diff options
Diffstat (limited to 'app/graphql/queries/pipelines/get_pipeline_details.query.graphql')
-rw-r--r-- | app/graphql/queries/pipelines/get_pipeline_details.query.graphql | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/app/graphql/queries/pipelines/get_pipeline_details.query.graphql b/app/graphql/queries/pipelines/get_pipeline_details.query.graphql new file mode 100644 index 00000000000..92323923266 --- /dev/null +++ b/app/graphql/queries/pipelines/get_pipeline_details.query.graphql @@ -0,0 +1,101 @@ +fragment LinkedPipelineData on Pipeline { + __typename + id + iid + path + status: detailedStatus { + __typename + group + label + icon + } + sourceJob { + __typename + name + } + project { + __typename + name + fullPath + } +} + +query getPipelineDetails($projectPath: ID!, $iid: ID!) { + project(fullPath: $projectPath) { + __typename + pipeline(iid: $iid) { + __typename + id + iid + downstream { + __typename + nodes { + ...LinkedPipelineData + } + } + upstream { + ...LinkedPipelineData + } + stages { + __typename + nodes { + __typename + name + status: detailedStatus { + __typename + action { + __typename + icon + path + title + } + } + groups { + __typename + nodes { + __typename + status: detailedStatus { + __typename + label + group + icon + } + name + size + jobs { + __typename + nodes { + __typename + name + scheduledAt + needs { + __typename + nodes { + __typename + name + } + } + status: detailedStatus { + __typename + icon + tooltip + hasDetails + detailsPath + group + action { + __typename + buttonTitle + icon + path + title + } + } + } + } + } + } + } + } + } + } +} |