Skip to content

cmd

Commands for merging PRs.

merge(override=typer.Option(False, '--override', '-o', help='Yields an option to merge PRs that the state file records as having already been merged'))

Merges all pull requests.

Source code in dapla_team_cli/pr/merge/cmd.py
11
12
13
14
15
16
17
18
19
20
21
def merge(
    override: bool = typer.Option(
        False, "--override", "-o", help="Yields an option to merge PRs that the state file records as having already been merged"
    ),
) -> None:
    """Merges all pull requests."""
    if state := state_object_handler.get_user_state():
        merge_all(state, override)
    else:
        sys.exit(1)
    print("\n[yellow]Hint: You can use 'dpteam pr state show' to get a table of all the PR states")