Merged in feature/merge-command-improvements (pull request #54)

feature: merge command improvements

Approved-by: Jonathan Teran
This commit is contained in:
JonathanGitFlow
2025-12-15 02:03:11 +00:00
committed by jt
+6 -1
View File
@@ -80,7 +80,8 @@ class MergeCommand(Command):
def create_pull_request(self, token: str, branch: str, target: str): def create_pull_request(self, token: str, branch: str, target: str):
changelog = Changelog() changelog = Changelog()
title = branch.replace("/", ": ").replace("-", " ") title = self.prompt("[Opcional] Ingrese un titulo para el PR")
title = title or branch.replace("/", ": ").replace("-", " ")
if title.startswith("release: "): if title.startswith("release: "):
title = title[title.index(' ', title.index(' ') + 1) + 1:] title = title[title.index(' ', title.index(' ') + 1) + 1:]
@@ -93,3 +94,7 @@ class MergeCommand(Command):
) )
self.success(message) self.success(message)
if self.confirm("¿Desea cambiar a la rama objetivo y bajar los cambios?"):
Git("switch", target).exec(print="Cambiando a rama objetivo")
Git("pull").exec(print="Obteniendo cambios")