fix(headless): handle missing review preset gracefully instead of unwrap
This commit is contained in:
@@ -149,7 +149,10 @@ pub fn run(config_or_task: &str, cwd_override: Option<&str>, name_override: Opti
|
||||
|
||||
/// Review changes, auto-commit if no issues found.
|
||||
pub fn review() {
|
||||
let configs = config::preset("review").unwrap();
|
||||
let configs = match config::preset("review") {
|
||||
Some(c) => c,
|
||||
None => { eprintln!("preset 'review' not found"); return; }
|
||||
};
|
||||
match execute_once(configs) {
|
||||
Ok(()) => {
|
||||
// Check if decision says "no issues" / "問題なし" / "コミット可能"
|
||||
|
||||
Reference in New Issue
Block a user