Change GitLab template

MSAL

Change a GitLab template in use.

org.openrewrite.gitlab.ChangeTemplate

Required

The name of the template to match.

Name of the template to use instead.

mod run . --recipe=org.openrewrite.gitlab.ChangeTemplate \ -P oldTemplate=Terraform/Base.gitlab-ci.yml \ -P newTemplate=OpenTofu/Base.gitlab-ci.yml

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change value $.include[?(@.template =~ 'null(?:@.+)?')].template to null