Skip to content

cmd

Deploy infrastructure changes by commenting 'atlantis apply' on PRs.

apply(max_prs=typer.Argument(sys.maxsize, help='Max PRs to open in one run.'))

Deploy infrastructure changes by commenting 'atlantis apply' on PRs.

Source code in dapla_team_cli/pr/atlantis_apply/cmd.py
11
12
13
14
15
16
17
18
def apply(max_prs: int = typer.Argument(sys.maxsize, help="Max PRs to open in one run.")) -> None:
    """Deploy infrastructure changes by commenting 'atlantis apply' on PRs."""
    if state := state_object_handler.get_user_state():
        atlantis_apply(state, max_prs)
    else:
        sys.exit(1)
    print("\n[yellow] Hint: You can use 'dpteam pr probe apply' to see the status of Atlantis apply before attempting a merge.")
    print("[yellow]Next step: Perhaps you would want to run 'dpteam pr merge' when the applies are successful?")