chore(scripts): filter contributors by minimum commits

This commit is contained in:
Elian Doran
2026-04-19 13:12:41 +03:00
parent e6e6c1feff
commit e7f85bb447

View File

@@ -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",