Push-Rules: Tags need to match an optionally predefined regexp
Description
Within the project settings its possible to force users to only name branches matching a predefined regexp. (Settings -> Repository -> Push-Rules -> Branch Name). I'd like to have the same setting for tags.
Currently using: GitLab EE Version 10.1.1-ee
Proposal
Please implement the same functionality for forcing tags matching a predefined regexp.
Use cases
Our CI automatically deploys our software if a tag has been specified as this is part of our QA. The tag is set manually and thus is prone to be mistyped. E.g. we have semantic versioning like "1.0.0". However, now and than someone only tags the release as "1.0" thinking it's the same or just forget about the last part.
Currently we use the automated CI to check this and exit forcefully:
[[ -z ${CI_BUILD_TAG} || $CI_BUILD_TAG =~ ^[1-9][0-9]*\.([0-9]|[1-9][0-9]+)\.([0-9]|[1-9][0-9]+)$ ]]
The above proposal would simplify this automation and reject the tag on push.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml