mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 01:56:03 +08:00
print contributor names in alphabetical order
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -130,7 +131,13 @@ func printMarkDown(issues []*Issue, version *string) {
|
||||
}
|
||||
|
||||
fmt.Println("# Contributors")
|
||||
for _, user := range contributors {
|
||||
usernames := make([]string, 0)
|
||||
for username := range contributors {
|
||||
usernames = append(usernames, username)
|
||||
}
|
||||
sort.Strings(usernames)
|
||||
for _, username := range usernames {
|
||||
user := contributors[username]
|
||||
fmt.Println(fmt.Sprintf("- <a href=\"%s\"><img src=\"%s\" width=\"12\"/> <strong>%s</strong></a> %s", user.URL, user.AvatarURL, user.Login, user.Login))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user