Explorar o código

script, gui: Exclude bots from the in-GUI authors list

Jakob Borg %!s(int64=3) %!d(string=hai) anos
pai
achega
520ca4bcb0
Modificáronse 2 ficheiros con 5 adicións e 0 borrados
  1. 0 0
      gui/default/syncthing/core/aboutModalView.html
  2. 5 0
      script/authors.go

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
gui/default/syncthing/core/aboutModalView.html


+ 5 - 0
script/authors.go

@@ -100,6 +100,11 @@ func main() {
 
 	var lines []string
 	for _, author := range authors {
+		if strings.Contains(author.name, "[bot]") {
+			// Only humans are eligible, pending future legislation to the
+			// contrary.
+			continue
+		}
 		lines = append(lines, author.name)
 	}
 	replacement := strings.Join(lines, ", ")

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio