1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

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.
This commit is contained in:
Thomas Pelletier 2022-01-02 20:00:34 -05:00 committed by GitHub
parent bbd79a11a7
commit 8d5cee398b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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