Procházet zdrojové kódy

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

Jakob Borg před 3 roky
rodič
revize
520ca4bcb0

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
gui/default/syncthing/core/aboutModalView.html


+ 5 - 0
script/authors.go

@@ -100,6 +100,11 @@ func main() {
 
 
 	var lines []string
 	var lines []string
 	for _, author := range authors {
 	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)
 		lines = append(lines, author.name)
 	}
 	}
 	replacement := strings.Join(lines, ", ")
 	replacement := strings.Join(lines, ", ")

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů