Merged in feature/merge-command-improvements (pull request #54)
feature: merge command improvements Approved-by: Jonathan Teran
This commit is contained in:
@@ -80,7 +80,8 @@ class MergeCommand(Command):
|
||||
|
||||
def create_pull_request(self, token: str, branch: str, target: str):
|
||||
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: "):
|
||||
title = title[title.index(' ', title.index(' ') + 1) + 1:]
|
||||
@@ -93,3 +94,7 @@ class MergeCommand(Command):
|
||||
)
|
||||
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user