Skip to content

Select CI template based on URL param

Nicolas Dular requested to merge nicolasdular/apply-ci-template-via-param into master

What does this MR do?

It adds the possibility to define a pre-selected CI template for the editor via a template URL param.

E.g. URL: http://localhost:3000/gitlab-org/gitlab-shell/-/new/master?commit_message=Add+.gitlab-ci.yml&file_name=.gitlab-ci.yml&template=Android

This is needed for gitlab-org/growth&61 (closed) where we want to list templates for the pipeline zero state page and link the user to the given template.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Nicolas Dular

Merge request reports

Loading