repomatic ci-status - Report which CI jobs are red, and which of
them gate a merge
repomatic ci-status [OPTIONS]
Report the latest CI run of each workflow, and what is actually
broken.
Reads jobs rather than runs, so a crashed allowed-failure probe
cannot hide inside a green run conclusion and a run still reading
"queued" cannot hide the dozen jobs of it that already
finished.
A job whose name carries the unstable glyph anywhere is allowed to
fail and never affects the exit code. Every other job is required, including
the non-matrix ones that carry no glyph at all. A matrix job whose name
still holds its template never evaluated: no cell of it ran.
A run that was cancelled, or that ran no job, is reported as such
and never as green: it has no result for its commit. A workflow that ran no
job on the tip is read on the last commit whose run of it was not
skipped.
--wait polls in-process, at --interval, and ends on the first
failed required job rather than at the end of the slowest matrix: that is
the moment to act. --until-change and --state-file turn it into a watch that
a scheduler re-arms, waking once per event. --failed-logs then fetches the
logs to read, one file per failed job.
- --branch
TEXT
- Branch whose latest run of each workflow to read.
- --workflow
WORKFLOW
- Workflow file to read, repeatable. Defaults to every workflow a push can
start, derived from .github/workflows/.
[values: autofix.yaml, autolock.yaml, cancel-runs.yaml, changelog.yaml,
debug.yaml, docs.yaml, labels.yaml, lint.yaml, metrics.yaml, release.yaml,
self-maintenance.yaml, tests.yaml, unsubscribe.yaml]
- --fatal /
--no-fatal
- Exit non-zero when a required job failed.
- --wait /
--no-wait
- Poll until a required job fails, or until every run settled and the tip
has a run of its own. Each poll prints the runs whose verdict
changed.
- --interval
FLOAT RANGE
- Seconds between two polls under --wait.
- --until-change
- Under --wait, stop after the first poll reporting a verdict the state file
has not seen, so a re-armed watch wakes once per event.
- --state-file
FILE
- JSON file of the verdicts already reported: read before the first poll,
written on every change.
- --timeout
FLOAT RANGE
- Seconds after which --wait gives up, 0 for no limit.
- --failed-logs
DIRECTORY
- Write the log of every failed required job into this directory, control
sequences stripped. A settled job's log is readable while its run
goes.
- --automation-prs
- Also list the open pull requests of the automation, with how many commits
each one lags its base.
- --release-pr
- Also report the open release pull request: its draft state, head and how
many commits it lags the branch.
- --sort-by
[workflow|commit|run-status|verdict]
- Sort table by this column. Repeat to set priority.
- --help /
-h
- Show this message and exit.
- CI_STATUS_BRANCH
- Branch whose latest run of each workflow to read.
- CI_STATUS_WORKFLOWS
- Workflow file to read, repeatable. Defaults to every workflow a push can
start, derived from .github/workflows/.
- CI_STATUS_FATAL
- Exit non-zero when a required job failed.
- CI_STATUS_WAIT
- Poll until a required job fails, or until every run settled and the tip
has a run of its own. Each poll prints the runs whose verdict
changed.
- CI_STATUS_INTERVAL
- Seconds between two polls under --wait.
- CI_STATUS_UNTIL_CHANGE
- Under --wait, stop after the first poll reporting a verdict the state file
has not seen, so a re-armed watch wakes once per event.
- CI_STATUS_STATE_FILE
- JSON file of the verdicts already reported: read before the first poll,
written on every change.
- CI_STATUS_TIMEOUT
- Seconds after which --wait gives up, 0 for no limit.
- CI_STATUS_FAILED_LOGS
- Write the log of every failed required job into this directory, control
sequences stripped. A settled job's log is readable while its run
goes.
- CI_STATUS_AUTOMATION_PRS
- Also list the open pull requests of the automation, with how many commits
each one lags its base.
- CI_STATUS_RELEASE_PR
- Also report the open release pull request: its draft state, head and how
many commits it lags the branch.
- CI_STATUS_SORT_BY
- Sort table by this column. Repeat to set priority.
- CI_STATUS__CLICK_DEFAULT_HELP
- Show this message and exit.
- 0
- Success.
- 1
- A runtime error, an aborted prompt (Ctrl-D), or a declined
confirmation.
- 2
- A usage error: unknown option, invalid value, missing operand, or an
unparsable configuration file.
- 130
- Interrupted with Ctrl-C: the process ends by SIGINT, reported as 130.
What is red on main right now
One workflow, without failing the shell
repomatic ci\-status \-\-workflow tests.yaml \-\-no\-fatal