Apply automatic changes

This commit is contained in:
luke-hagar-sp
2024-02-29 23:58:49 +00:00
committed by github-actions[bot]
parent 80c0a2fffb
commit e11d0c7bbe
2 changed files with 405 additions and 12591 deletions

7
dist/index.js vendored
View File

@@ -45401,10 +45401,13 @@ try {
contributorStatsPromises.push(getReposContributorsStats(octokit, username, repo.name)); contributorStatsPromises.push(getReposContributorsStats(octokit, username, repo.name));
} }
} }
const contributorStats = (await Promise.all(contributorStatsPromises)) const contributorStats = (await Promise.allSettled(contributorStatsPromises))
.filter((entry) => entry !== null || entry !== undefined) .filter((entry) => entry !== null || entry !== undefined)
.map((entry) => { .map((entry) => {
return (Array.isArray(entry.data) ? entry.data : [entry.data]) if (entry.status === "rejected") {
return [];
}
return (Array.isArray(entry.value.data) ? entry.value.data : [entry.value.data])
.filter((contributor) => contributor.author?.login === userDetails.data.login) .filter((contributor) => contributor.author?.login === userDetails.data.login)
.map((contributor) => contributor.weeks); .map((contributor) => contributor.weeks);
}); });

File diff suppressed because it is too large Load Diff