enhance: conventional commit message builder supports breaking changes prefix (#584)

This commit is contained in:
leo 2024-10-21 15:47:54 +08:00
parent 3804b0a828
commit 00a2ec5abe
No known key found for this signature in database

View file

@ -68,12 +68,13 @@ namespace SourceGit.ViewModels
{ {
builder.Append("("); builder.Append("(");
builder.Append(_scope); builder.Append(_scope);
builder.Append("): "); builder.Append(")");
} }
else
{ if (string.IsNullOrEmpty(_breakingChanges))
builder.Append(": "); builder.Append(": ");
} else
builder.Append("!: ");
builder.Append(_description); builder.Append(_description);
builder.Append("\n\n"); builder.Append("\n\n");