Merged in bugfix/pr-title-getter (pull request #70)
bugfix: arreglo split de branch para armar correctamente el titulo del PR Approved-by: Jonathan Teran
This commit is contained in:
@@ -104,7 +104,7 @@ def create_pull_request(token: str, branch: str, target: str):
|
|||||||
Git("pull").exec(print="Obteniendo cambios")
|
Git("pull").exec(print="Obteniendo cambios")
|
||||||
|
|
||||||
def _get_pr_title_from_branch(branch: str) -> str:
|
def _get_pr_title_from_branch(branch: str) -> str:
|
||||||
components = branch.split("-") # <type>/<desc> or release/<env>/<type>/<desc>
|
components = branch.split("/") # <type>/<desc> or release/<env>/<type>/<desc>
|
||||||
branch_type = components[-2]
|
branch_type = components[-2]
|
||||||
branch_desc = components[-1]
|
branch_desc = components[-1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user