Switching branches in the pipeline editor shows the same pipeline status
Summary
When switching branches in the pipeline editor, the pipeline status at the top shows the latest pipeline for the default branch instead of the non-default branch the user switched to.
Issue was brought up in #332845 (closed).
Steps to reproduce
- Create two branches with different commits on
.gitlab-ci.yml file
. - Go to the Pipeline Editor and switch from branch A to branch B.
- The pipeline status shows the pipeline for the same commit.
What is the expected correct behavior?
The pipeline status should show the pipeline ran for the latest commit on the branch the user is currently on.
Relevant logs and/or screenshots
Edited by Mireya Andres