Skip to main content

infrahub_sdk.ctl.branch

Functions

callback

callback() -> None

Manage the branches in a remote Infrahub instance.

List, create, merge, rebase ..

list_branch

list_branch(_: str = CONFIG_PARAM) -> None

List all existing branches.

create

create(branch_name: str = typer.Argument(..., help='Name of the branch to create'), description: str = typer.Option(default='', help='Description of the branch'), sync_with_git: bool = typer.Option(False, help='Extend the branch to Git and have Infrahub create the branch in connected repositories.'), isolated: bool = typer.Option(True, hidden=True, help='Set the branch to isolated mode (deprecated)'), _: str = CONFIG_PARAM) -> None

Create a new branch.

delete

delete(branch_name: str, _: str = CONFIG_PARAM) -> None

Delete a branch.

rebase

rebase(branch_name: str, _: str = CONFIG_PARAM) -> None

Rebase a Branch with main.

merge

merge(branch_name: str, _: str = CONFIG_PARAM) -> None

Merge a Branch with main.

validate

validate(branch_name: str, _: str = CONFIG_PARAM) -> None

Validate if a branch has some conflict and is passing all the tests (NOT IMPLEMENTED YET).