Edit relevant config from pipeline error message
What does this MR do and why?
The 'Go to the pipeline editor' button in case of a pipeline error message links to the default branch currently. With this change the link instead goes to the configuration of the relevant ref, making it easier to start debugging the error right away.
Button was originally added in !111517 (merged)
By using source_ref this should have the desired outcome for all types of pipelines. I manually verified it for branch, MR and merged results pipelines.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Create project with this
.gitlab-ci.yml
:include: - test.yml
- Look at ensuing pipeline
- Observe button linking to default branch config in pipeline editor
- Add comment to
.gitlab-ci.yml
file in a new branch - Look at ensuing pipeline for new branch
- Observe button linking to config for new branch in pipeline editor <-- this is the change