Browse Source

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

Jakob Borg 3 năm trước cách đây
mục cha
commit
520ca4bcb0
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 0 0
      gui/default/syncthing/core/aboutModalView.html
  2. 5 0
      script/authors.go

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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, ", ")

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác