huskies: merge 985
This commit is contained in:
@@ -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:") {
|
||||
|
||||
Reference in New Issue
Block a user