bugfix: get target from tag options
This commit is contained in:
@@ -16,11 +16,11 @@ app = typer.Typer()
|
||||
|
||||
|
||||
@app.command()
|
||||
def tag(token: str | None = None, update_changelog: bool = False):
|
||||
def tag(target: str | None = None, token: str | None = None, update_changelog: bool = False):
|
||||
"""Crea un nuevo tag para el último merge."""
|
||||
base.ensure_initialized()
|
||||
|
||||
target = Git.get_current_branch()
|
||||
target = target or Git.get_current_branch()
|
||||
|
||||
if target not in base.environments:
|
||||
raise GitFlowError("Solo se pueden taggear commits en ramas principales.")
|
||||
|
||||
Reference in New Issue
Block a user