Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/contributor list: add extra bot exclusion
Adorian Doranfb691f6ade85
diff --git a/apps/client/src/services/contributors_list.ts b/apps/client/src/services/contributors_list.tsindex ab1f6c1755..7e1a4fb98a 100644--- a/apps/client/src/services/contributors_list.ts+++ b/apps/client/src/services/contributors_list.ts@@ -11,6 +11,9 @@ export interface Contributor {// is exceeded by another users.const PINNED_CONTRIBUTORS = ["eliandoran", "zadam"];+// Bots marked as users on the GitHub profile info to exclude from the listing+const BOTS = ["weblate"];+export default async function getContributors() {const response = await fetch("https://api.github.com/repos/TriliumNext/Trilium/contributors");@@ -26,7 +29,7 @@ export default async function getContributors() {function getList(contributorInfo: any[]) {return contributorInfo// Filter out bots and private profiles- .filter((c) => c.type === "User" && c.user_view_type === "public")+ .filter((c) => c.type === "User" && c.user_view_type === "public" && !BOTS.includes(c.login))// Sort by the commit count. Honorific contributors are always first..sort(contributorOrderer).map((c) => {return {