Skip to content

Commit 4c60906

Browse files
committed
feat(git.rs): the words doesnt colorful
1 parent ab60c25 commit 4c60906

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/git/git.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl CommitHelper {
269269
long_desc: &str,
270270
breaking: bool,
271271
) -> String {
272-
let type_part = format!("{}", commit_type).color(type_color).to_string();
272+
let type_part = commit_type.color(type_color).to_string();
273273

274274
let mut message = if scope.is_empty() {
275275
format!("{}: {}", type_part, short_desc)
@@ -282,7 +282,7 @@ impl CommitHelper {
282282
}
283283

284284
if breaking {
285-
message.push_str("\n\nBREAKING CHANGE: ");
285+
message.push_str(&format!("\n\n{}", "BREAKING CHANGE:".bright_red()));
286286
}
287287

288288
message

0 commit comments

Comments
 (0)