Skip to content

Commit 8acb8b7

Browse files
Nightapesfwiedmann
authored andcommitted
refactor(changelog): sort authors
1 parent fd10631 commit 8acb8b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/changelog/changelog.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bufio"
55
"bytes"
66
"io/ioutil"
7+
"sort"
78
"strings"
89
"text/template"
910
"time"
@@ -192,6 +193,8 @@ func (c *Changelog) GenerateChangelog(templateConfig shared.ChangelogTemplateCon
192193
i++
193194
}
194195

196+
sort.Sort(sort.StringSlice(authorsNames))
197+
195198
changelogContent := changelogContent{
196199
CommitsContent: commitsContent,
197200
Version: templateConfig.Version,

0 commit comments

Comments
 (0)