Merged in feature/add-release-tag-support (pull request #12)
feature: add release tag support Approved-by: Jonathan Teran
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
## Domingo, 2 de Noviembre de 2025, 15:47
|
||||||
|
|
||||||
|
- Autor: [Jonathan Teran Carballo](mailto:jonathan.nerat@gmail.com)
|
||||||
|
- Rama: `feature/add-release-tag-support`
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- **feature**: agrego soporte para tag de merge de ramas release (d74bafe)
|
||||||
|
- git-flow (M)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Domingo, 2 de Noviembre de 2025, 15:32
|
## Domingo, 2 de Noviembre de 2025, 15:32
|
||||||
|
|
||||||
- Autor: [Jonathan Teran Carballo](mailto:jonathan.nerat@gmail.com)
|
- Autor: [Jonathan Teran Carballo](mailto:jonathan.nerat@gmail.com)
|
||||||
|
|||||||
@@ -357,8 +357,16 @@ def tag_command():
|
|||||||
until_dash = last_version.index("-") if "-" in last_version else None
|
until_dash = last_version.index("-") if "-" in last_version else None
|
||||||
[major, minor, patch] = map(int, last_version[from_major:until_dash].split("."))
|
[major, minor, patch] = map(int, last_version[from_major:until_dash].split("."))
|
||||||
|
|
||||||
merged_branch_type = merged_branch[:merged_branch.index('/')] if '/' in merged_branch else merged_branch
|
components = merged_branch.split("/")
|
||||||
increment = BRANCH_TYPES_INCREMENT[merged_branch_type]
|
|
||||||
|
if len(components) not in [2, 4]:
|
||||||
|
raise RuntimeError("Branch mergeado es inválido: " + merged_branch)
|
||||||
|
elif len(components) == 4 and components[0] != "release":
|
||||||
|
raise RuntimeError("Release branch mergeado es inválido: " + merged_branch)
|
||||||
|
elif components[-2] not in BRANCH_TYPES:
|
||||||
|
raise RuntimeError("Tipo de rama mergeado es inválido: " + components[-2])
|
||||||
|
|
||||||
|
increment = BRANCH_TYPES_INCREMENT[components[-2]]
|
||||||
|
|
||||||
if increment == "major":
|
if increment == "major":
|
||||||
major = major + 1
|
major = major + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user