Skip to content

CI/CD editor nav link should maintain current branch

What does this MR do and why?

Currently if you are viewing your repository and click on "CI/CD => Editor" the branch that you are currently viewing is lost. This MR adds a query param that will conserve the branch if you navigate through the editor link.

Screenshots or screen recordings

Before After
Screen_Recording_2022-01-19_at_3.18.37_PM Screen_Recording_2022-01-19_at_3.11.48_PM

How to set up and validate locally

  1. Go to the repository view
  2. Change the current branch to anything other than the default branch
  3. Click on CI/CD => editor
  4. Notice that the branch you selected is preeserved

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #348792 (closed)

Edited by Frédéric Caplette

Merge request reports

Loading