feat: implement breaking change input
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 16m17s

This commit is contained in:
2026-03-09 22:57:35 +01:00
parent d51760fc9f
commit 520a54aae4
13 changed files with 836 additions and 137 deletions

View File

@@ -1,6 +1,6 @@
use assert_fs::TempDir;
#[cfg(feature = "test-utils")]
use jj_cz::{CommitType, Description, MockPrompts, Scope};
use jj_cz::{BreakingChange, CommitType, Description, MockPrompts, Scope};
use jj_cz::{CommitWorkflow, Error, JjLib};
#[cfg(feature = "test-utils")]
use jj_lib::{config::StackedConfig, settings::UserSettings, workspace::Workspace};
@@ -27,6 +27,7 @@ async fn test_happy_path_integration() {
.with_commit_type(CommitType::Feat)
.with_scope(Scope::empty())
.with_description(Description::parse("add new feature").unwrap())
.with_breaking_change(BreakingChange::No)
.with_confirm(true);
// Create a mock executor that tracks calls
@@ -85,6 +86,7 @@ async fn test_cancellation() {
.with_commit_type(CommitType::Feat)
.with_scope(Scope::empty())
.with_description(Description::parse("test").unwrap())
.with_breaking_change(BreakingChange::No)
.with_confirm(true);
let workflow = CommitWorkflow::with_prompts(executor, mock_prompts);