feature: agrego opcion para personalizar nombre de PR

This commit is contained in:
Jonathan Teran Carballo
2025-12-14 22:53:26 -03:00
parent 7fb0ba0c39
commit c87b14121c
+2 -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:]