Skip to content

Commit

Permalink
Meta: IPR: filter out known commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 18, 2024
1 parent dbab5d0 commit 2e16146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function getAllCommits(page = 1) {
const commitsURL = `https://api.github.com/repos/${slug}/commits?anon=1&per_page=${perPage}&page=${page}&sha=${sha}`;
const commits = await request(commitsURL).then((json) => JSON.parse(json));
return [...new Set([].concat(
commits.flatMap(x => getAuthorFromCommit(x) || []),
commits.filter(x => !legacyCommitsWithUnknownAuthors.has(x?.sha)).flatMap(x => getAuthorFromCommit(x) || []),
commits.length < perPage ? [] : await getAllCommits(page + 1),
))];
}
Expand Down

0 comments on commit 2e16146

Please sign in to comment.