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): filter contributors by minimum commits
Elian Dorane7f85bb44753
diff --git a/scripts/list-contributors.ts b/scripts/list-contributors.tsindex 8df2652e8b..c70561bcae 100644--- a/scripts/list-contributors.ts+++ b/scripts/list-contributors.ts@@ -36,13 +36,16 @@ async function listGitHubContributors() {return;}- const contributors: ContributorInfo[] = list.map((c) => {- return {- name: c.login,- url: c.html_url,- commitCount: c.contributions- } as ContributorInfo;- });+ const MIN_CONTRIBUTIONS = 125;+ const contributors: ContributorInfo[] = list+ .filter((c) => c.contributions >= MIN_CONTRIBUTIONS)+ .map((c) => {+ return {+ name: c.login,+ url: c.html_url,+ commitCount: c.contributions+ } as ContributorInfo;+ });showTable({title: "GitHub Contributor List",