Skip to content

Fix fork badge always shown in pipelines page

Frédéric Caplette requested to merge fc-fix-pipelines-all-forks into master

What does this MR do and why?

During a refactor, the logic to render a fork badge changed and it caused a regression which would always render the fork badge in the pipelines/ page.

This MR fixes a bug introduced by !154025 (merged) where the project pipeline index page would always show a fork badge, even if the pipeline is not from a fork.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot 2024-06-13 at 9.59.07 AM.png Screenshot_2024-06-13_at_9.59.33_AM

How to set up and validate locally

  1. Go to any project
  2. Start a pipeline
  3. Navigate to the pipelines page /pipelines
  4. See that the fork badge is gone from non fork pipelines.

Merge request reports