Skip to content

Commit

Permalink
chore: filter out bots from contrib list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 8, 2025
1 parent cc86ce0 commit a07e011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-contributors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit a07e011

Please sign in to comment.