refactor(changelog): sort authors

This commit is contained in:
Sebastian
2022-04-11 20:24:36 +02:00
committed by Felix Wiedmann
parent fd1063132f
commit 8acb8b74b8

View File

@@ -4,6 +4,7 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"io/ioutil" "io/ioutil"
"sort"
"strings" "strings"
"text/template" "text/template"
"time" "time"
@@ -192,6 +193,8 @@ func (c *Changelog) GenerateChangelog(templateConfig shared.ChangelogTemplateCon
i++ i++
} }
sort.Sort(sort.StringSlice(authorsNames))
changelogContent := changelogContent{ changelogContent := changelogContent{
CommitsContent: commitsContent, CommitsContent: commitsContent,
Version: templateConfig.Version, Version: templateConfig.Version,