From 2c04d629631236e444eb88c69f05fcb29e27e3b2 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 9 Jul 2024 11:29:24 +0100 Subject: [PATCH] fix: addresses a bug introduced in the last release where trimming all commit messages to a single line got broken --- internal/task/changelog/changelog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/task/changelog/changelog.go b/internal/task/changelog/changelog.go index 6069ef01..65c1977b 100644 --- a/internal/task/changelog/changelog.go +++ b/internal/task/changelog/changelog.go @@ -153,7 +153,7 @@ func (t Task) Run(ctx *context.Context) error { rels[i].Changes[j].Message = msg } if idx := strings.Index(msg, "\n"); idx > -1 { - rels[i].Changes[j].Message = strings.TrimSpace(msg) + rels[i].Changes[j].Message = strings.TrimSpace(msg[:idx]) } } }