huskies: merge 835

This commit is contained in:
dave
2026-04-29 10:36:09 +00:00
parent 1ae8e8ec9d
commit be5db846cc
5 changed files with 1015 additions and 1007 deletions
+30
View File
@@ -0,0 +1,30 @@
//! Handler for the `status` command and pipeline status helpers.
mod labels;
mod render;
#[cfg(test)]
mod tests;
pub(super) use labels::{story_short_label, traffic_light_dot};
pub(super) use render::{build_pipeline_status, unmet_deps_from_items};
#[cfg(test)]
pub(super) use render::{build_status_from_items, first_non_empty_snippet};
use super::CommandContext;
/// Dispatch the `status` bot command.
///
/// With no arguments, renders the full pipeline status. With arguments,
/// delegates to the triage handler for per-story details.
pub(super) fn handle_status(ctx: &CommandContext) -> Option<String> {
if ctx.args.trim().is_empty() {
Some(build_pipeline_status(
ctx.effective_root(),
&ctx.services.agents,
))
} else {
super::triage::handle_triage(ctx)
}
}