소스 검색

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

Jakob Borg 3 년 전
부모
커밋
520ca4bcb0
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      gui/default/syncthing/core/aboutModalView.html
  2. 5 0
      script/authors.go

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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, ", ")

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.