hive-forge: add ci-runs listing verb, fix ci-log's ambiguous no-log message

This commit is contained in:
damocles 2026-09-02 02:10:50 +02:00 committed by mara
commit 56c0602c2f
6 changed files with 204 additions and 59 deletions

View file

@ -176,6 +176,10 @@ enum Verb {
/// Re-run CI without an empty commit. Pass one of `--pr <n>`,
/// `--run <n>`, or `--branch <name>`; `--workflow` defaults to `ci.yml`.
CiRerun(verbs::ci_rerun::Args),
/// List CI Actions runs, newest first (`--workflow`, `--branch`,
/// `--limit`, `--page`) — the run numbers `ci-log`/`ci-rerun --run`/
/// `artifact-get --run` take.
CiRuns(verbs::ci_runs::Args),
/// Git credential-helper protocol (`get|store|erase`) — not a verb
/// you run by hand. `clone` configures each checkout's
/// `credential.helper` to invoke this, so git asks it for a token
@ -268,6 +272,7 @@ fn dispatch(client: &client::Client, verb: Verb) -> Result<()> {
Verb::ArtifactGet(a) => verbs::artifact_get::run(client, a),
Verb::CiLog(a) => verbs::ci_log::run(client, a),
Verb::CiRerun(a) => verbs::ci_rerun::run(client, a),
Verb::CiRuns(a) => verbs::ci_runs::run(client, a),
Verb::CredentialHelper(_) => {
unreachable!("handled in `run` before client construction")
}