Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65c901e5b8 | ||
|
|
5759f67aa2 | ||
|
|
726c73af39 | ||
|
|
057b32a2f9 | ||
|
|
c0e2e596aa | ||
|
|
77e338dcc8 | ||
|
|
1aa2263a38 |
@@ -1,3 +1,14 @@
|
||||
## v1.11.0 - 2025-12-22
|
||||
|
||||
- **feature**: al agrupar release, mergear cambios en rama group [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (726c73a)
|
||||
- **feature**: usar commit message cuando el pr solo tiene un commit [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (057b32a)
|
||||
- **feature**: eliminar prompt de ticket en creacion de rama [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (c0e2e59)
|
||||
- **feature**: deshacer rebase cuando este falla en el pasaje de cambios [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (77e338d)
|
||||
- **bugfix**: uso titulo personalizado de PR [[jonathan.nerat](mailto:jonathan.nerat@gmail.com)] (1aa2263)
|
||||
|
||||
---
|
||||
|
||||
|
||||
## v1.10.0 - 2025-12-15
|
||||
|
||||
- **feature**: agrego opcion para cambiar a rama objetivo y obtener cambios [[jteran](mailto:jteran@renatre.org.ar)] (df8998a)
|
||||
|
||||
@@ -80,16 +80,27 @@ class MergeCommand(Command):
|
||||
|
||||
def create_pull_request(self, token: str, branch: str, target: str):
|
||||
changelog = Changelog()
|
||||
title = self.prompt("[Opcional] Ingrese un titulo para el PR")
|
||||
title = title or branch.replace("/", ": ").replace("-", " ")
|
||||
commits = Git("log", target + "..", format="%s").lines()
|
||||
|
||||
if len(commits) == 1:
|
||||
title = commits[0]
|
||||
else:
|
||||
title = branch.replace("/", ": ").replace("-", " ")
|
||||
|
||||
if title.startswith("release: "):
|
||||
title = title[title.index(' ', title.index(' ') + 1) + 1:]
|
||||
|
||||
self.info("Título del PR por defecto: " + title)
|
||||
|
||||
opt_title = self.prompt("[Opcional] Ingrese otro titulo para el PR")
|
||||
|
||||
if opt_title:
|
||||
title = opt_title
|
||||
|
||||
message = self.get_remote_api(token).create_pull_request(
|
||||
branch,
|
||||
target,
|
||||
branch.replace("/", ": ").replace("-", " "),
|
||||
title,
|
||||
changelog.generate_content(target, branch),
|
||||
)
|
||||
|
||||
|
||||
@@ -44,9 +44,6 @@ class NewCommand(Command):
|
||||
persistent=True,
|
||||
)
|
||||
|
||||
ticket = self.prompt("[Opcional] Ingrese el ID del ticket (por ejemplo ABC-123 o #123)")
|
||||
ticket = ticket[1:] if ticket.startswith("#") else ticket
|
||||
keywords = ticket + ' ' + keywords
|
||||
keywords = filter(lambda k: len(k) > 0, keywords.split(" "))
|
||||
branch = branch_type + "/" + "-".join(keywords)
|
||||
|
||||
|
||||
@@ -55,9 +55,11 @@ class ReleaseCommand(Command):
|
||||
print("- " + commit)
|
||||
|
||||
group = args.group
|
||||
grouping = group is not None
|
||||
|
||||
if not group:
|
||||
if not grouping:
|
||||
if self.confirm("¿Desea agrupar este release con otra rama?", False):
|
||||
grouping = True
|
||||
group = self.choice("Grupo release: ", Git.get_branches("release/" + next_env + "/"))
|
||||
else:
|
||||
group = next_env
|
||||
@@ -89,6 +91,15 @@ class ReleaseCommand(Command):
|
||||
else:
|
||||
Git("switch", next_branch, create=True).exec(print="Creando rama release")
|
||||
|
||||
Git("rebase", base, next_branch, onto=group).exec(
|
||||
status = Git("rebase", base, next_branch, onto=group).code(
|
||||
print="Moviendo cambios hacia el siguiente ambiente"
|
||||
)
|
||||
|
||||
if status:
|
||||
Git("rebase", abort=True).exec(
|
||||
print="Deshaciendo cambios por conflictos"
|
||||
)
|
||||
raise GitFlowError("Error al realizar pasaje de cambios a rama objetivo")
|
||||
elif grouping:
|
||||
Git("switch", group).exec(print="Cambiando a rama objetivo")
|
||||
Git("merge", next_branch, ff_only=True).exec(print="Mergeando cambios de la nueva rama")
|
||||
|
||||
Reference in New Issue
Block a user