Migrate only/except to rules
MSALReplace the deprecated only and except keywords with equivalent rules in .gitlab-ci.yml job definitions. When both only and except are present, they are combined into a single rules block. Handles ref lists and the object form with refs, variables, changes and kubernetes, matching named refs as branches.
org. openrewrite. gitlab. MigrateToRulesmod run . --recipe= org. openrewrite. gitlab. MigrateToRulesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.