Fix fork badge always shown in pipelines page
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
- Go to any project
- Start a pipeline
- Navigate to the pipelines page
/pipelines
- See that the fork badge is gone from non fork pipelines.