Skip to content

graphql: Add stage to pipeline type

Cong Chen requested to merge genctys/gitlab:add-stage-to-pipeline-type into master

What does this MR do and why?

Resolves #330377 (closed)

How to set up and validate locally

Send a graphql request like beblow:

project(full_path: 'root/example-project') {
  pipeline(iid: 3) {
   stage(name: name, id: id) {
      id
      name
      description
      detailedStatus {
        group
        action
        label
        ...
      }
      jobs {
        edges {
          node {
            id
            name
            ...
          }
        }
      }
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports