Merged in bugfix/dont-push-environment-branches-on-merge (pull request #73)

bugfix: dont push environment branches since they are already created on remote

Approved-by: Jonathan Teran
This commit is contained in:
JonathanGitFlow
2026-05-20 20:14:08 +00:00
committed by jt
+4 -3
View File
@@ -49,9 +49,10 @@ def run_remote(remote: str, token: str, branch: str, target: str):
show_commits_to_merge(target)
if confirm(f"¿Crear PR de '{branch}' a '{target}'?"):
Git("push", remote, branch, set_upstream=True).exec(
print="Subiendo rama al remoto para crear PR"
)
if branch not in environments:
Git("push", remote, branch, set_upstream=True).exec(
print="Subiendo rama al remoto para crear PR"
)
create_pull_request(token, branch, target)