rlsbl v0.40.1 /rlsbl.commands.watch
On this page

Watch command that polls GitHub Actions CI workflow runs for a given commit SHA and reports pass, fail, or in-progress status.

#rlsbl.commands.watch

#rlsbl.commands.watch

Watch command that polls GitHub Actions CI workflow runs for a given commit SHA and reports pass, fail, or in-progress status.

#_notify

python
def _notify(title, body)

Send a desktop notification. Non-fatal if unavailable.

#_watch_single_run

python
def _watch_single_run(ci_run, label, repo_slug)

Watch a single CI run. Returns a dict with name, passed, and message.

#_watch_runs

python
def _watch_runs(runs, label, repo_slug)

Watch all runs in parallel (or directly if only one). Returns list of result dicts.

#_has_publish_workflow_on_disk

python
def _has_publish_workflow_on_disk()

Check if any .github/workflows file looks like a publish workflow.

#_is_publish_workflow

python
def _is_publish_workflow(name)

Return True if the workflow name matches a publish/deploy/release pattern.

#_print_workflow_audit

python
def _print_workflow_audit(results)

Print a summary of which workflows ran and flag missing publish workflows.

Returns True if a missing-publish warning was printed (for testability).

#_poll_runs

python
def _poll_runs(commit_sha, max_attempts=15, interval=2)

Poll gh run list until at least one run appears.

Returns a list of run dicts (may be empty if nothing found after all attempts).

#run_cmd

python
def run_cmd(registry, args, flags)

Watch all CI runs for a commit until they complete.

Usage: rlsbl watch [] Defaults to HEAD if no commit SHA is provided.