huskies: merge 865
This commit is contained in:
@@ -10,7 +10,7 @@ use std::num::NonZeroU32;
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
|
||||
use crate::io::story_metadata::clear_front_matter_field_in_content;
|
||||
use crate::db::yaml_legacy::clear_front_matter_field_in_content;
|
||||
use crate::pipeline_state::{
|
||||
ApplyError, ArchiveReason, BranchName, GitSha, PipelineEvent, Stage, apply_transition,
|
||||
stage_label,
|
||||
@@ -34,7 +34,7 @@ pub(crate) fn item_type_from_id(item_id: &str) -> &'static str {
|
||||
// Numeric-only ID: check content store front matter for explicit type.
|
||||
if after_num.is_empty()
|
||||
&& let Some(content) = crate::db::read_content(item_id)
|
||||
&& let Ok(meta) = crate::io::story_metadata::parse_front_matter(&content)
|
||||
&& let Ok(meta) = crate::db::yaml_legacy::parse_front_matter(&content)
|
||||
&& let Some(t) = meta.item_type.as_deref()
|
||||
{
|
||||
return match t {
|
||||
@@ -214,7 +214,7 @@ pub fn reject_story_from_qa(story_id: &str, notes: &str) -> Result<(), String> {
|
||||
let mut result = clear_front_matter_field_in_content(content, "review_hold");
|
||||
if !notes_owned.is_empty() {
|
||||
result =
|
||||
crate::io::story_metadata::write_rejection_notes_to_content(&result, ¬es_owned);
|
||||
crate::db::yaml_legacy::write_rejection_notes_to_content(&result, ¬es_owned);
|
||||
}
|
||||
result
|
||||
});
|
||||
@@ -257,7 +257,7 @@ pub fn transition_to_blocked(story_id: &str, reason: &str) -> Result<(), String>
|
||||
pub fn transition_to_merge_failure(story_id: &str, reason: &str) -> Result<(), String> {
|
||||
let reason_owned = reason.to_string();
|
||||
let transform: Box<dyn Fn(&str) -> String> = Box::new(move |content: &str| {
|
||||
crate::io::story_metadata::write_merge_failure_in_content(content, &reason_owned)
|
||||
crate::db::yaml_legacy::write_merge_failure_in_content(content, &reason_owned)
|
||||
});
|
||||
apply_transition(
|
||||
story_id,
|
||||
|
||||
Reference in New Issue
Block a user