Open Pipeline Editor on current branch when previewing CI config file
requested to merge 342018-when-working-on-a-feature-branch-pipeline-editor-should-open-gitlab-ci-yml-on-that-branch into master
What does this MR do and why?
When previewing a gitlab config file in the repository view, you can click on the "Pipeline Editor" button to open it in the Pipeline editor section. If you were previewing the file in a branch other than main
, then it would not carry over when landing in the section. This MR changes that.
Screenshots or screen recordings
Screen_Recording_2021-10-25_at_2.37.38_PM
How to set up and validate locally
- Turn on
pipeline_editor_branch_switcher
feature flag - Go in a project with a CI config
- In the repository view, click to view your Ci config file (AKA .gitlab-ci.yml)
- Change which branch you are on (anything but
main
) - Click on "Pipeline Editor" button
- Notice that you land in the Pipeline editor section on the correct branch
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #342018 (closed)
Edited by Frédéric Caplette