Add extra check before tagging release on the release tag.

Tag not starting with 0. and good confirmation

$ ./scripts/tag-release.sh
Tag to create release for: 1.2.0-alpha1
☢️ Are you sure you want to use 1.2.0-alpha1? Then write it again: 1.2.0-alpha1
[0/5] 💁‍♂️ Opening working directory /tmp/tmp.pqrYxA2rE0 …

Tag not starting with 0. and bad confirmation

$ ./scripts/tag-release.sh
Tag to create release for: 2.1.0-alpha1
☢️ Are you sure you want to use 2.1.0-alpha1? Then write it again: 1.2.1-alpha3
⛔ Nope.

Tag starting with 0.

$ ./scripts/tag-release.sh
Tag to create release for: 0.2.1-alpha3
[0/5] 💁‍♂️ Opening working directory /tmp/tmp.pqrYxA2rE0 …

Closes #3519592

Merge request reports

Loading