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:
parent
bbd79a11a7
commit
8d5cee398b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user