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:
@@ -49,9 +49,10 @@ def run_remote(remote: str, token: str, branch: str, target: str):
|
|||||||
show_commits_to_merge(target)
|
show_commits_to_merge(target)
|
||||||
|
|
||||||
if confirm(f"¿Crear PR de '{branch}' a '{target}'?"):
|
if confirm(f"¿Crear PR de '{branch}' a '{target}'?"):
|
||||||
Git("push", remote, branch, set_upstream=True).exec(
|
if branch not in environments:
|
||||||
print="Subiendo rama al remoto para crear PR"
|
Git("push", remote, branch, set_upstream=True).exec(
|
||||||
)
|
print="Subiendo rama al remoto para crear PR"
|
||||||
|
)
|
||||||
|
|
||||||
create_pull_request(token, branch, target)
|
create_pull_request(token, branch, target)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user