mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 12:07:27 +02:00
chore(scripts): filter contributors by minimum commits
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user