diff --git a/scripts/fetch-contributors.mjs b/scripts/lib/fetch-contributors.mjs similarity index 94% rename from scripts/fetch-contributors.mjs rename to scripts/lib/fetch-contributors.mjs index 93107b58197a..f90fbe2cae1d 100644 --- a/scripts/fetch-contributors.mjs +++ b/scripts/lib/fetch-contributors.mjs @@ -38,7 +38,7 @@ export async function fetchContributors(token) { let contributors = []; for (let page = 1; page < 5; page++) { - const c = await fetchPage(page); + const c = (await fetchPage(page)).filter((c) => c.type === 'User'); contributors.push(...c); if (c.length < perPage) { break; diff --git a/scripts/update-contributors.mjs b/scripts/update-contributors.mjs index 96eb129bd900..e928b27ea51d 100755 --- a/scripts/update-contributors.mjs +++ b/scripts/update-contributors.mjs @@ -3,7 +3,7 @@ import { execSync } from 'node:child_process'; import { writeFile } from 'node:fs/promises'; -import { fetchContributors } from './fetch-contributors.mjs'; +import { fetchContributors } from './lib/fetch-contributors.mjs'; const token = process.argv[2] || (await getToken());