Probes workflows for atlantis plan and checks in repositories.
Source code in dapla_team_cli/pr/probe/probe_workflows.py
18
19
20
21
22
23
24
25
26
27
28
29
30 | @batch_handler
def probe_workflows(state: State) -> None: # noqa: C901
"""Probes workflows for atlantis plan and checks in repositories."""
print("\n\n[cyan]Probing repositories for check runs..")
for repo in state.repos.values():
print(f"[bold magenta]{repo.name}")
if pr := get_pr(repo.pr.number, repo.name):
_probe_check_runs(repo, pr)
print("\n[cyan]Probing repositories for plans..")
for repo in state.repos.values():
print(f"[bold magenta]{repo.name}")
if pr := get_pr(repo.pr.number, repo.name):
_probe_plans(repo, pr)
|