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 7061e3d commit 1cd8f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class GithubUser {

async fetchContent() {
this.octocat = await octokit.request("GET /octocat");
console.log(util.color.randomColorANSI(util.arrayBufferToAsciiString(this.octocat.data)));
octokit.log.debug(util.color.randomColorANSI(util.arrayBufferToAsciiString(this.octocat.data)));

this.userContent = await octokit.request("GET /users/{username}", {
username: this.userName,
Expand Down Expand Up @@ -327,7 +327,7 @@ 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.values(contributors).filter(element => Object.hasOwn(element.author) ? (Object.hasOwn((element.author), "login") === username).length : []));
octokit.log.debug("✅ contributors hasOwn:login :", Object.values(contributors).filter(element => (Object.hasOwn(element.author), "login") ? (Object.hasOwn((element.author), "login") === username).length : []));
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 1cd8f88

Please sign in to comment.