From ff1c2016c056ab3cf99b8f29de52ce8e7e931056 Mon Sep 17 00:00:00 2001 From: Simon Prochazka Date: Sat, 1 Jan 2022 13:59:07 +0000 Subject: [PATCH] fix(slack): github squash format breaks formatting --- internal/slack/release_notes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/slack/release_notes.go b/internal/slack/release_notes.go index 285f114..0d5262c 100644 --- a/internal/slack/release_notes.go +++ b/internal/slack/release_notes.go @@ -6,6 +6,7 @@ import ( "github.com/aevea/quoad" "github.com/aevea/release-notary/internal" + "github.com/aevea/release-notary/internal/text" "github.com/slack-go/slack" ) @@ -45,7 +46,7 @@ func GenerateReleaseNotes(changelog map[string][]quoad.Commit, remote GitRemoter Type: "section", Text: &slack.TextBlockObject{ Type: "mrkdwn", - Text: fmt.Sprintf(":%s: *%s*", section.Icon, section.Title), + Text: fmt.Sprintf(":%s: *%s*", section.Icon, text.TrimMessage(section.Title)), }, }