mirror of
https://github.com/LukeHagar/stats-action.git
synced 2025-12-06 04:21:26 +00:00
Apply automatic changes
This commit is contained in:
committed by
github-actions[bot]
parent
80c0a2fffb
commit
494079c5a5
7
dist/index.js
vendored
7
dist/index.js
vendored
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "Luke Hagar",
|
"name": "Luke Hagar",
|
||||||
"username": "LukeHagar",
|
"username": "LukeHagar",
|
||||||
"repoViews": 1685,
|
"repoViews": 1695,
|
||||||
"linesOfCodeChanged": 10624985,
|
"linesOfCodeChanged": 9306377,
|
||||||
"totalCommits": 1582,
|
"totalCommits": 1582,
|
||||||
"totalPullRequests": 48,
|
"totalPullRequests": 48,
|
||||||
"codeByteTotal": 11732628,
|
"codeByteTotal": 11732737,
|
||||||
"topLanguages": [
|
"topLanguages": [
|
||||||
{
|
{
|
||||||
"languageName": "Svelte",
|
"languageName": "Svelte",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{
|
{
|
||||||
"languageName": "TypeScript",
|
"languageName": "TypeScript",
|
||||||
"color": "#3178c6",
|
"color": "#3178c6",
|
||||||
"value": 3158734
|
"value": 3158843
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"languageName": "Makefile",
|
"languageName": "Makefile",
|
||||||
@@ -78,12 +78,12 @@
|
|||||||
"value": 303
|
"value": 303
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"forkCount": 14,
|
"forkCount": 15,
|
||||||
"starCount": 113,
|
"starCount": 113,
|
||||||
"totalContributions": 1773,
|
"totalContributions": 1773,
|
||||||
"closedIssues": 12,
|
"closedIssues": 12,
|
||||||
"openIssues": 10,
|
"openIssues": 10,
|
||||||
"fetchedAt": 1709248844162,
|
"fetchedAt": 1709250936662,
|
||||||
"contributionData": [
|
"contributionData": [
|
||||||
{
|
{
|
||||||
"contributionCount": 1,
|
"contributionCount": 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user