Skip to content

Fix child pipeline badge is broken in CI header

Kev Kloss requested to merge kkloss-fix-ci-header-child-pipeline-badge into master

What does this MR do and why?

This MR fixes that the pipeline badge for a child pipeline (including the link to the parent) is broken and just shows a small blue dot. The reason for it being broken is the missing import of GlSprintf and GlLink.

This appears to have been introduced in Abstract badge markup and logic from pipeline d... (!148425 - merged) and broken since.

I noticed this in this pipeline: https://gitlab.com/gitlab-org/gitlab/-/pipelines/1304023827

image

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Go to a project
  2. Configure a pipeline with downstream pipeline
  3. View the pipeline
  4. See that the child pipeline badge renders correctly and links to the parent pipeline

Merge request reports