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
chore(scripts): tweak criteria for contributors
Elian Doranadc648d277b5
diff --git a/.mailmap b/.mailmapindex 2aaad92883..1f9f14f5a8 100644--- a/.mailmap+++ b/.mailmap@@ -17,8 +17,9 @@ Panagiotis Papadopoulos <[email protected]> <[email protected]Jon Fuller <[email protected]>-SiriusXT <[email protected]>-SiriusXT <[email protected]> <[email protected]>+SiriusXT <[email protected]>+SiriusXT <[email protected]> <[email protected]>+SiriusXT <[email protected]> <[email protected]>JYC333 <[email protected]>JYC333 <[email protected]> <[email protected]>diff --git a/scripts/list-contributors.ts b/scripts/list-contributors.tsindex d465ca071e..719898d679 100644--- a/scripts/list-contributors.ts+++ b/scripts/list-contributors.ts@@ -60,6 +60,13 @@ const TRANSLATION_PATHS = ["apps/server/src/assets/translations/"];+/** Authors that are bots or automated tools, not real contributors. */+const EXCLUDED_AUTHORS = new Set([+ "Languages add-on",+ "Hosted Weblate",+ "renovate[bot]"+]);+function parseShortlog(rawOutput: string): Map<string, { email: string; commitCount: number }> {const result = new Map<string, { email: string; commitCount: number }>();for (const line of rawOutput.split("\n")) {@@ -82,6 +89,7 @@ function listLocalGitContributors() {const translators: ContributorInfo[] = [];let rank = 0;for (const [name, { email, commitCount }] of allContribs) {+ if (EXCLUDED_AUTHORS.has(name)) continue;if (++rank > 20) break;const translationCommitCount = translationContribs.get(name)?.commitCount ?? 0;