From 494079c5a59ecbe08320416b436474d920eb9c95 Mon Sep 17 00:00:00 2001 From: luke-hagar-sp Date: Thu, 29 Feb 2024 23:55:54 +0000 Subject: [PATCH] Apply automatic changes --- dist/index.js | 7 +++++-- github-user-stats.json | 12 ++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index 99b1755..7ba860c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); }); diff --git a/github-user-stats.json b/github-user-stats.json index 029d6e9..5363175 100644 --- a/github-user-stats.json +++ b/github-user-stats.json @@ -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,