huskies: merge 1141 story Convert work-item type between spike/story/bug/refactor (or at least spike→story)
This commit is contained in:
@@ -114,7 +114,8 @@ mod tests {
|
||||
assert!(names.contains(&"schedule_timer"));
|
||||
assert!(names.contains(&"list_timers"));
|
||||
assert!(names.contains(&"cancel_timer"));
|
||||
assert_eq!(tools.len(), 82);
|
||||
assert!(names.contains(&"convert_item_type"));
|
||||
assert_eq!(tools.len(), 83);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -671,6 +671,25 @@ pub(super) fn story_tools() -> Vec<Value> {
|
||||
"required": ["story_id"]
|
||||
}
|
||||
}),
|
||||
json!({
|
||||
"name": "convert_item_type",
|
||||
"description": "Convert a work item's type in place (e.g. spike → story). The story_id, ACs, epic association, and all other registers are preserved; only the item_type register changes. Rejected for archived items.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"story_id": {
|
||||
"type": "string",
|
||||
"description": "Work item identifier (filename stem, e.g. '42_spike_my_spike')"
|
||||
},
|
||||
"new_type": {
|
||||
"type": "string",
|
||||
"enum": ["story", "bug", "spike", "refactor", "epic"],
|
||||
"description": "Target item type"
|
||||
}
|
||||
},
|
||||
"required": ["story_id", "new_type"]
|
||||
}
|
||||
}),
|
||||
json!({
|
||||
"name": "freeze_story",
|
||||
"description": "Freeze a work item at its current pipeline stage, suppressing pipeline advancement and auto-assign until unfrozen.",
|
||||
|
||||
Reference in New Issue
Block a user