Merge Request Header - Discrepancy in branch name between fixed and sticky header
What / Why?
First noticed in this MR: !112975 (merged)
When an MR comes from a forked repository the MR header displays different information about the branch depending on whether you have scrolled down or not. This causes some confusion on what the true name of the branch is and hides the fact that you are working on branch from a separate repository or not.
Based on the example MR above:
- When scrolled all the way to the top the branch is named:
gitlab-community/gitlab:23726-profile-header-tidy
- When scrolled down the sticky nav branch name is:
23726-profile-header-tidy
- When copy branch button is clicked, branch copied is
23726-profile-header-tidy
Screenshots
Fixed Header | Sticky Header |
---|---|
![]() |
![]() |
Proposal
Provide a fix that displays the branch name the same across all views and also aligns with what is copied to your clipboard.
note: Knowing if you are working on a branch from a fork is valuable information as it requires a bit more context to run a git fetch
on your local machine.
Edited by Zack Cuddy