From 8d5cee398b04e376e7eea42790bc1e96a9e6598e Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Sun, 2 Jan 2022 20:00:34 -0500 Subject: [PATCH] fix: don't format github-native changelog (#2802) The Github changelog generation API returns a pre-formatted changelog. The current implementation prefixes every line of that log with "* ". This operation breaks the formatting. This change makes goreleaser treat github-native changelog as-is, without trying to modify it. --- internal/pipe/changelog/changelog.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/pipe/changelog/changelog.go b/internal/pipe/changelog/changelog.go index f7d37d16f..84bb28f9b 100644 --- a/internal/pipe/changelog/changelog.go +++ b/internal/pipe/changelog/changelog.go @@ -72,7 +72,9 @@ func (Pipe) Run(ctx *context.Context) error { "## Changelog", } - if shouldGroup(ctx.Config.Changelog) { + if ctx.Config.Changelog.Use == "github-native" { + changelogElements = []string{strings.Join(entries, changelogStringJoiner)} + } else if shouldGroup(ctx.Config.Changelog) { log.Debug("grouping entries") groups := ctx.Config.Changelog.Groups