Apply automatic changes

This commit is contained in:
luke-hagar-sp
2024-02-29 23:55:54 +00:00
committed by github-actions[bot]
parent 80c0a2fffb
commit 494079c5a5
2 changed files with 11 additions and 8 deletions

7
dist/index.js vendored
View File

@@ -45401,10 +45401,13 @@ try {
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)
.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)
.map((contributor) => contributor.weeks);
});

View File

@@ -1,11 +1,11 @@
{
"name": "Luke Hagar",
"username": "LukeHagar",
"repoViews": 1685,
"linesOfCodeChanged": 10624985,
"repoViews": 1695,
"linesOfCodeChanged": 9306377,
"totalCommits": 1582,
"totalPullRequests": 48,
"codeByteTotal": 11732628,
"codeByteTotal": 11732737,
"topLanguages": [
{
"languageName": "Svelte",
@@ -20,7 +20,7 @@
{
"languageName": "TypeScript",
"color": "#3178c6",
"value": 3158734
"value": 3158843
},
{
"languageName": "Makefile",
@@ -78,12 +78,12 @@
"value": 303
}
],
"forkCount": 14,
"forkCount": 15,
"starCount": 113,
"totalContributions": 1773,
"closedIssues": 12,
"openIssues": 10,
"fetchedAt": 1709248844162,
"fetchedAt": 1709250936662,
"contributionData": [
{
"contributionCount": 1,