gui, authors: Remove additional bot names (#8333)

Skip Syncthing*Automation in authors list as well.
This commit is contained in:
André Colomb
2022-05-08 22:42:05 +02:00
committed by GitHub
parent 2bcaa17fc3
commit 235422c26d
2 changed files with 10 additions and 4 deletions
+9 -3
View File
@@ -28,10 +28,16 @@ import (
const htmlFile = "gui/default/syncthing/core/aboutModalView.html"
var (
nicknameRe = regexp.MustCompile(`\(([^\s]*)\)`)
emailRe = regexp.MustCompile(`<([^\s]*)>`)
nicknameRe = regexp.MustCompile(`\(([^\s]*)\)`)
emailRe = regexp.MustCompile(`<([^\s]*)>`)
authorBotsRegexps = []string{
`\[bot\]`,
`Syncthing.*Automation`,
}
)
var authorBotsRe = regexp.MustCompile(strings.Join(authorBotsRegexps, "|"))
const authorsHeader = `# This is the official list of Syncthing authors for copyright purposes.
#
# THIS FILE IS MOSTLY AUTO GENERATED. IF YOU'VE MADE A COMMIT TO THE
@@ -100,7 +106,7 @@ func main() {
var lines []string
for _, author := range authors {
if strings.Contains(author.name, "[bot]") {
if authorBotsRe.MatchString(author.name) {
// Only humans are eligible, pending future legislation to the
// contrary.
continue