Skip to content

Add SemanticVersion validation to `Ci::Catalog::Resources::Version`

Laura Montemayor requested to merge add-semver-validation into master

What does this MR do and why?

Add SemanticVersion validation to Ci::Catalog::Resource::Version

Screenshots or screen recordings

With an improper tag:

Screenshot_2024-02-08_at_13.27.32

With a semantic version tag:

Screenshot 2024-02-12 at 17.05.44.png

How to set up and validate locally

This can be tested by simply trying to create a release with a proper version - 1.0.0 and then any other tag, which will fail.

Note - support for the v prefix is upcoming and will be dealt with in a separate MR.

Issue: #427286 (closed)

Edited by Laura Montemayor

Merge request reports