You've already forked goreleaser
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:
committed by
GitHub
parent
6fbe7d5be6
commit
9b6af9efba
@ -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,
|
||||
|
Reference in New Issue
Block a user