1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

fix: do not override release notes

This commit is contained in:
Carlos Alexandro Becker
2019-01-19 18:35:34 -02:00
committed by Carlos Alexandro Becker
parent feb33c569c
commit 4a8d526f47

View File

@ -128,6 +128,10 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (int64,
data,
)
} else {
// keep the pre-existing release notes
if release.GetBody() != "" {
data.Body = release.Body
}
release, _, err = c.client.Repositories.EditRelease(
ctx,
ctx.Config.Release.GitHub.Owner,