refactor: use base.io_ methods
This commit is contained in:
@@ -20,13 +20,8 @@ def commit():
|
||||
else:
|
||||
raise GitFlowError("Debe agregar algún cambio al indice para continuar.")
|
||||
|
||||
commit_type = base.io_choice("Tipo de commit", COMMIT_TYPES)
|
||||
commit_message = base.io_prompt(
|
||||
"Mensaje de commit",
|
||||
validator=lambda s: 0 < len(s) and len(s) < 100,
|
||||
instruction="100 caracteres máximo",
|
||||
)
|
||||
message = commit_type + ": " + commit_message
|
||||
message = base.get_commit_message()
|
||||
commit_type = message[:message.index(':')]
|
||||
|
||||
if branch.startswith(WIP_BRANCH_PREFIX):
|
||||
original_branch = branch.removeprefix(WIP_BRANCH_PREFIX)
|
||||
|
||||
Reference in New Issue
Block a user