diff --git a/src/git_flow/command/merge.py b/src/git_flow/command/merge.py index 23c8121..683d732 100644 --- a/src/git_flow/command/merge.py +++ b/src/git_flow/command/merge.py @@ -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")