Skip to content

Commit c6ee39a

Browse files
committed
🐛 fix: when there are no default msg => no :
1 parent 341a5c3 commit c6ee39a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/popups/conventional_commit.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ enum CommitType {
3434
#[strum(to_string = "feat")]
3535
Feature,
3636
Fix,
37+
Wip,
38+
Debug,
39+
Test,
3740
Docs,
3841
Style,
3942
#[strum(to_string = "perf")]
4043
Performance,
41-
Test,
42-
Build,
43-
CI,
4444
Chore,
4545
Revert,
4646
Initial,
4747
Bump,
48-
Wip,
49-
Debug,
48+
Build,
49+
CI,
5050
}
5151

5252
enum MoreInfoCommit {
@@ -568,7 +568,8 @@ impl ConventionalCommitPopup {
568568
self.queue.push(crate::queue::InternalEvent::OpenCommit);
569569
self.queue.push(
570570
crate::queue::InternalEvent::AddCommitMessage(format!(
571-
"{emoji} {commit_type}: {short_msg}"
571+
"{emoji} {commit_type}{} {short_msg}",
572+
if short_msg.is_empty() { "" } else { ":" },
572573
)),
573574
);
574575
self.hide();

0 commit comments

Comments
 (0)