We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab60c25 commit 4c60906Copy full SHA for 4c60906
1 file changed
src/modules/git/git.rs
@@ -269,7 +269,7 @@ impl CommitHelper {
269
long_desc: &str,
270
breaking: bool,
271
) -> String {
272
- let type_part = format!("{}", commit_type).color(type_color).to_string();
+ let type_part = commit_type.color(type_color).to_string();
273
274
let mut message = if scope.is_empty() {
275
format!("{}: {}", type_part, short_desc)
@@ -282,7 +282,7 @@ impl CommitHelper {
282
}
283
284
if breaking {
285
- message.push_str("\n\nBREAKING CHANGE: ");
+ message.push_str(&format!("\n\n{}", "BREAKING CHANGE:".bright_red()));
286
287
288
message
0 commit comments