|
|
|
@ -42,6 +42,7 @@ def _get_current_git_branch() -> str:
|
|
|
|
|
help="Fetch from GitHub Actions instead of GitLab CI",
|
|
|
|
|
)
|
|
|
|
|
@click.option("-b", "--branch", help="Branch name")
|
|
|
|
|
@click.option("-r", "--run-id", help="GitHub Actions run id", type=int)
|
|
|
|
|
@click.option(
|
|
|
|
|
"-o",
|
|
|
|
|
"--only-jobs",
|
|
|
|
@ -58,6 +59,7 @@ def _get_current_git_branch() -> str:
|
|
|
|
|
def ci(
|
|
|
|
|
github: bool,
|
|
|
|
|
branch: str | None,
|
|
|
|
|
run_id: int | None,
|
|
|
|
|
only_jobs: Iterable[str] | None,
|
|
|
|
|
exclude_jobs: Iterable[str] | None,
|
|
|
|
|
remove_missing: bool,
|
|
|
|
@ -80,7 +82,9 @@ def ci(
|
|
|
|
|
if github:
|
|
|
|
|
from github import get_branch_ui_fixtures_results
|
|
|
|
|
|
|
|
|
|
ui_results = get_branch_ui_fixtures_results(branch, only_jobs, exclude_jobs)
|
|
|
|
|
ui_results = get_branch_ui_fixtures_results(
|
|
|
|
|
branch, only_jobs, exclude_jobs, run_id
|
|
|
|
|
)
|
|
|
|
|
else:
|
|
|
|
|
from gitlab import get_branch_ui_fixtures_results, get_jobs_of_interest
|
|
|
|
|
|
|
|
|
|