CLI: a whole re-run names the new run it started

f19604a · Gabriel Morell · 2026-10-18 06:11

4 files +15 -9
Message
{commit_body(@commit)}

Files changed

modified cli/src/commands/ci.rs
+15 −9
@@ -374,15 +374,21 @@ async fn rerun(ctx: &Ctx, repo: &RepoRef, number: i64, job: Option<&str>) -> Res
374 374 return Ok(());
375 375 }
376 376
377 − let what = match job {
378 − Some(job) => format!("job {job} of run #{number}"),
379 − None => format!("run #{number}"),
380 − };
381 − println!(
382 − "{} {what} — now {}",
383 − paint("Re-queued", Tone::Good),
384 − status_badge(res.run.display_status())
385 − );
377 + // A whole re-run is a new run with its own number; a job re-runs in
378 + // place, and the status shown is its run's.
379 + match job {
380 + Some(job) => println!(
381 + "{} job {job} of run #{number} — run now {}",
382 + paint("Re-queued", Tone::Good),
383 + status_badge(res.run.display_status())
384 + ),
385 + None => println!(
386 + "{} run #{} (re-run of #{number}) — {}",
387 + paint("Started", Tone::Good),
388 + res.run.number,
389 + status_badge(res.run.display_status())
390 + ),
391 + }
386 392 Ok(())
387 393 }
388 394

Parents: eaf7cde