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
e11d0c7bbe
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);
|
||||||
});
|
});
|
||||||
|
|||||||
12989
github-user-stats.json
12989
github-user-stats.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user