Skip to content

Frontend: CI/CD editor should render the .gitlab-ci for the branch from which the menu is being accessed

Summary

When browsing through a repository on a different branch than master/main and one now selects the CI/CD-tab in the left menu, the Editor is rendered for the .gitlab-ci.yaml file from the master branch. The editor is never rendered for the .gitlab-ci.yaml of the branch I am currently on.

Steps to reproduce

  1. Access the project overview
  2. Switch to a branch other than main/master
  3. Hover over the CI/CD-tab in the left menu and click on "Editor"
  4. The editor is rendered for the gitlab-ci.yaml, though I accessed the editor coming from another branch.

What is the current bug behavior?

The actual behaviour is the following: The editor shows the file from the main/master branch, even though I accessed the editor from a different branch.

What I expect is: The editor should be rendered for the branch that I have accessed it from. I should also be able to see from which branch I accessed the editor and which branch I am currently working on.

Relevant logs and/or screenshots

This is the tab in the menu I am talking about. When accessing from a branch different than master/main, the appropriate file should be rendered. grafik

Environment

We are using GitLab on a self-hosted instance with version 13.12.15ee.

Edited by Mark Nuzzo