From de124baf1adde7631d62f8ebbfaff255b9ae0cb7 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Date: Fri, 22 May 2026 16:13:39 -0300 Subject: [PATCH] bugfix: change pr title on merges between environments --- src/git_flow/command/merge.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/git_flow/command/merge.py b/src/git_flow/command/merge.py index fda33e8..1599001 100644 --- a/src/git_flow/command/merge.py +++ b/src/git_flow/command/merge.py @@ -120,6 +120,10 @@ def create_pull_request(token: str, branch: str, target: str): Git("pull").exec(print="Obteniendo cambios") def _get_pr_title_from_branch(branch: str) -> str: + if branch in environments: + target = environments[environments.index(branch) + 1] + return f"Sincronización de entorno {branch} a {target}" + components = branch.split("/") # / or release/// branch_type = components[-2] branch_desc = components[-1] @@ -140,4 +144,4 @@ def _get_pr_title_from_branch(branch: str) -> str: branch_type + ":", branch_ticket, branch_desc.replace("-", " ") - ])) \ No newline at end of file + ]))