Skip to content

Commit

Permalink
Merge pull request #9060 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…9055-to-release-1.5

[release-1.5] 🐛 Alphabetically sorting release tool output
  • Loading branch information
k8s-ci-robot authored Jul 24, 2023
2 parents 6a7fbf4 + 32a723f commit 25f67b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/tools/release/notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ func run() int {
}
default:
fmt.Println("## " + key)
sort.Strings(mergeslice)
sort.Slice(mergeslice, func(i int, j int) bool {
str1 := strings.ToLower(mergeslice[i])
str2 := strings.ToLower(mergeslice[j])
return str1 < str2
})
for _, merge := range mergeslice {
fmt.Println(merge)
}
Expand Down

0 comments on commit 25f67b4

Please sign in to comment.