From 00a2ec5abeeafbcda7563aa5fef939092a90cec4 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 21 Oct 2024 15:47:54 +0800 Subject: [PATCH] enhance: conventional commit message builder supports breaking changes prefix (#584) --- src/ViewModels/ConventionalCommitMessageBuilder.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ViewModels/ConventionalCommitMessageBuilder.cs b/src/ViewModels/ConventionalCommitMessageBuilder.cs index ab48bc30..731c48ae 100644 --- a/src/ViewModels/ConventionalCommitMessageBuilder.cs +++ b/src/ViewModels/ConventionalCommitMessageBuilder.cs @@ -68,12 +68,13 @@ namespace SourceGit.ViewModels { builder.Append("("); builder.Append(_scope); - builder.Append("): "); + builder.Append(")"); } - else - { + + if (string.IsNullOrEmpty(_breakingChanges)) builder.Append(": "); - } + else + builder.Append("!: "); builder.Append(_description); builder.Append("\n\n");