Skip to content

Commit

Permalink
fix: correctly update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Feb 7, 2023
1 parent 635ebe1 commit 2dbf0ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ builds:
- linux_arm
- windows_amd64
main: ./cmd/hooks-goreleaser
flags:
- -trimpath
ldflags:
- -extldflags '-static'
- -s -w -X github.com/go-semantic-release/hooks-goreleaser/pkg/hooks.HVERSION={{.Version}}
Expand Down
2 changes: 1 addition & 1 deletion goreleaser/int/client/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (c *gitlabClient) CreateRelease(ctx *context.Context, body string) (release
} else {
desc := body
if release != nil {
desc = getReleaseNotes(release.DescriptionHTML, body, ctx.Config.Release.ReleaseNotesMode)
desc = getReleaseNotes(release.Description, body, ctx.Config.Release.ReleaseNotesMode)
}

release, _, err = c.client.Releases.UpdateRelease(projectID, tagName, &gitlab.UpdateReleaseOptions{
Expand Down

0 comments on commit 2dbf0ba

Please sign in to comment.