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

fix: changelog is too long (#2661)

Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
This commit is contained in:
Engin Diri
2021-11-11 13:31:01 +01:00
committed by GitHub
parent 9af17a49ad
commit c958e4cc5e
3 changed files with 30 additions and 0 deletions

View File

@ -207,6 +207,9 @@ func (c *githubClient) CreateRelease(ctx *context.Context, body string) (string,
return "", err
}
// Truncate the release notes if it's too long (github doesn't allow more than 125000 characters)
body = truncateReleaseBody(body)
data := &github.RepositoryRelease{
Name: github.String(title),
TagName: github.String(ctx.Git.CurrentTag),