fix: Select latest pipeline between branch and MR

Description

This changes the behavior of the sidebar to select either the Merge Request pipeline or the branch pipeline, depending on which of the two is newer.

Related to #2267 (closed)

How has this been tested?

  1. Make a branch and a MR
  2. Merge the MR, without deleting the source branch
  3. Push more commits to the source branch
  4. The sidebar should show the pipeline for the new commit, instead of the pipeline at the time of merging the MR.

Screenshots (if appropriate)

Before After
Screenshot_2026-06-08_at_11.31.02 Screenshot_2026-06-08_at_11.34.27

Note the different pipeline ID in each screenshot

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Olena Horal-Koretska

Merge request reports

Loading
Loading