diff options
author | André Colomb <src@andre.colomb.de> | 2022-05-08 22:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 22:42:05 +0200 |
commit | 235422c26dbd13b4a6214362bd99931a59eb9770 (patch) | |
tree | 703647ca4326beef772db039ead1a351b7554fa4 /script | |
parent | 2bcaa17fc3233ecf95011233be5d19b9c9b40273 (diff) | |
download | syncthing-235422c26dbd13b4a6214362bd99931a59eb9770.tar.gz syncthing-235422c26dbd13b4a6214362bd99931a59eb9770.zip |
gui, authors: Remove additional bot names (#8333)
Skip Syncthing*Automation in authors list as well.
Diffstat (limited to 'script')
-rw-r--r-- | script/authors.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/script/authors.go b/script/authors.go index 58c469415..55a77ebae 100644 --- a/script/authors.go +++ b/script/authors.go @@ -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 |