1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-17 01:42:37 +02:00

fix: actually respect changelog.abbrev (#4942)

Some changelogers were always returning the short sha instead of the
full one, so setting an abbrev had no effect.

This fixes these changelogers, which should now always return the full
sha.

Note that github usually still shortens the SHAs rendered in markdown,
so the changes might not even be visible in most cases.

closes #4829
This commit is contained in:
Carlos Alexandro Becker
2024-06-15 15:40:08 -03:00
committed by GitHub
parent 6fbe7d5be6
commit 9b6af9efba
6 changed files with 9 additions and 9 deletions

View File

@ -84,7 +84,7 @@ func (c *giteaClient) Changelog(_ *context.Context, repo Repo, prev, current str
for _, commit := range result.Commits {
log = append(log, ChangelogItem{
SHA: commit.SHA[:7],
SHA: commit.SHA,
Message: strings.Split(commit.RepoCommit.Message, "\n")[0],
AuthorName: commit.Author.FullName,
AuthorEmail: commit.Author.Email,