You've already forked go-semantic-release
refactor(changelog): sort authors
This commit is contained in:
committed by
Felix Wiedmann
parent
fd1063132f
commit
8acb8b74b8
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user