Add check that major is not issued in the middle of a year

This commit is contained in:
Mikhail f. Shiryaev 2023-02-24 12:14:17 +01:00
parent ad7ec74009
commit 6fa16b7828
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -199,6 +199,10 @@ class Release:
raise ValueError(
"The relese type must be 'major' for minor versions>=12"
)
if self._version.minor < 12 and self.release_type == "major":
raise ValueError(
"The relese type must be 'minor' for minor versions<12"
)
with self._checkout(self.release_commit, True):
# Checkout to the commit, it will provide the correct current version