debian-mirror-gitlab/app/graphql/queries/pipelines/get_pipeline_details.query.graphql
2022-01-26 12:08:38 +05:30

119 lines
2.2 KiB
GraphQL

fragment LinkedPipelineData on Pipeline {
__typename
id
iid
path
status: detailedStatus {
__typename
id
group
label
icon
}
sourceJob {
__typename
id
name
}
project {
__typename
id
name
fullPath
}
}
query getPipelineDetails($projectPath: ID!, $iid: ID!) {
project(fullPath: $projectPath) {
__typename
id
pipeline(iid: $iid) {
__typename
id
iid
complete
usesNeeds
userPermissions {
updatePipeline
}
downstream {
__typename
nodes {
...LinkedPipelineData
}
}
upstream {
...LinkedPipelineData
}
stages {
__typename
nodes {
__typename
id
name
status: detailedStatus {
__typename
id
action {
__typename
id
icon
path
title
}
}
groups {
__typename
nodes {
__typename
id
status: detailedStatus {
__typename
id
label
group
icon
}
name
size
jobs {
__typename
nodes {
__typename
id
name
scheduledAt
needs {
__typename
nodes {
__typename
id
name
}
}
status: detailedStatus {
__typename
id
icon
tooltip
hasDetails
detailsPath
group
action {
__typename
id
buttonTitle
icon
path
title
}
}
}
}
}
}
}
}
}
}
}