Large amount of related merge requests on pipelines pages when merging several times from same branch name

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

When merging several times from the same branch name, you can endup with large amount of "Related Merge Requests" showing up on that branch pipeline pages.

Steps to reproduce

Create several merge requests originating from the same branch. This is common when adopting a gitflow approach.

eg, dev branch being merged every so often into a master one:

image

Example Project

Here is a screenshot of what we are getting on our dev branch pipelines.

image

What is the current bug behavior?

Showing large amount of unuseful links to former merge requests

What is the expected correct behavior?

I assume that you should only get the most recent and opened merge request or have a mechanism available in order to stop this functionnality.

Edited Sep 04, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading