Skip to content

Commit 00a2ec5

Browse files
committed
enhance: conventional commit message builder supports breaking changes prefix (#584)
1 parent 3804b0a commit 00a2ec5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ViewModels/ConventionalCommitMessageBuilder.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ public bool Apply()
6868
{
6969
builder.Append("(");
7070
builder.Append(_scope);
71-
builder.Append("): ");
71+
builder.Append(")");
7272
}
73-
else
74-
{
73+
74+
if (string.IsNullOrEmpty(_breakingChanges))
7575
builder.Append(": ");
76-
}
76+
else
77+
builder.Append("!: ");
7778

7879
builder.Append(_description);
7980
builder.Append("\n\n");

0 commit comments

Comments
 (0)