Skip to content

Add `short_sha` and `ref_path` to `PipelineType` (GraphQL)

What does this MR do and why?

Resolves #330381 (closed)

How to set up and validate locally

  1. pull code from gentcys/gitlab:add-short_sha-to-pipeline-type
  2. start GDK
  3. open browser and view http://you-local-gitlab-address/-/graphql-explorer
  4. input query
    {
        project(fullPath: "You project full path") {
            pipelines {
                edges {
                    node {
                        iid
                        id
                        refPath
                        shortSha: sha(format: SHORT)
                        longSha: sha(format: LONG)
                    }
                }
            }
        }
    }
  5. click search button

MR acceptance checklist

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

Edited by Cong Chen

Merge request reports