Use Pipeline Editor to add new CI file from Suggest Pipeline banner
What does this MR do and why?
- This MR implements part of #334660 (closed)
- Design issue
👉🏻 gitlab-org/growth/team-tasks#399 (closed)
It includes the following changes:
- It updates the copy of the Suggest Pipeline banner (as per gitlab-org/growth/team-tasks#399 (closed))
- It updates the behavior of the CTA button in the Suggest Pipeline banner to take the user to the Pipeline Editor (with starter template filled in) instead of the file editor (to add a
.gitlab-ci.yml
file).
Screenshots or screen recordings
Before
- User is taken to single file editor to create a
.gitlab-ci.yml
file
After
- User is taken to the Pipeline Editor skipping the empty state screen
How to set up and validate locally
Setup
- Create a MR without pipelines
- Create a project with Auto DevOps disabled in the project settings CI/CD section (Auto DevOps will add pipelines to a MR which we don't want)
- Create a MR in the project with Auto DevOps disabled (edit the README in Web IDE and commit with create MR option checked)
Validate
- Go to the MR without pipeline
- Validate that the new version (updated copy) of the suggest pipeline banner is shown
- Click on the "Try out GitLab Pipelines"
- Validate that you are taken to the Pipeline Editor (empty state screen is skipped)
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.
Edited by Frédéric Caplette