Add commit field to pipeline GraphQL type

What does this MR do and why?

This MR;

  • adds the commit (Types::CommitType) GraphQL field to Types::Ci::PipelineType
  • adds the full_title GraphQL field to Types::CommitType

Related to #341093 (closed), (original: #327196 (closed))

Screenshots or screen recordings

Screen_Shot_2021-10-27_at_15.06.22

How to set up and validate locally

Open http://gdk.test:3000/-/graphql-explorer and use;

query getPipeline($fullPath: ID!, $sha: String!) {
  project(fullPath: $fullPath) {
    pipeline(sha: $sha) {
      commit {
        fullTitle
      }
    }
  }
}

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 Furkan Ayhan

Merge request reports

Loading