Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj committed Aug 1, 2024
1 parent 318027c commit b89512d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ class GithubUser {
const contributorsResults = await Promise.all(contributorsPromises);
octokit.log.debug("✅ fetchAllcontributors.status:", (contributorsResults.flatMap(element => element.status)))
const contributors = contributorsResults.flatMap(result => result.data);
octokit.log.debug("✅ contributors hasOwn:login :", Object.entries(contributors).filter(element => element.flatMap(el => el.author)));
octokit.log.debug("✅ contributors hasOwn:login :", Object.entries(contributors).map(([total, weeks]) => ({
total,
weeks
}))
)
const authenticate = (element => element.author ? element.author.login === username : '')
const contribU = Object.values(contributors).filter(authenticate)
// octokit.log.debug("✅ contribU counts:", (contribU.flatMap((counts) => counts.total)).reduce((a, b) => a + b, 0))
Expand Down

0 comments on commit b89512d

Please sign in to comment.