huskies: merge 985

This commit is contained in:
dave
2026-05-13 16:47:56 +00:00
parent 580480094e
commit a078d3df7c
3 changed files with 107 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
//! Handler for the `show` command.
use super::CommandContext;
use crate::io::story_metadata::QaMode;
/// Strip YAML front matter and return a summary of useful fields + the remaining body.
#[allow(clippy::string_slice)] // indices from find("\n---") on ASCII delimiter; "---" and "\n---" are ASCII-only
@@ -41,7 +42,7 @@ fn strip_front_matter(text: &str) -> (String, String) {
}
} else if line.starts_with("qa:") {
let val = line.trim_start_matches("qa:").trim().trim_matches('"');
if val == "human" {
if let Some(QaMode::Human) = QaMode::from_str(val) {
parts.push("**QA:** human review required".to_string());
}
} else if line.starts_with("merge_failure:") {