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 cb239ee commit 611c4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
GITHUB_owner: ${{github.repository_owner}}
FORCE_COLOR: true
FORCE_COLOR: '3'

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
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), "login"))).length || "undefined" )
octokit.log.debug("✅ contributors hasOwn:login :", Object.values(contributors).filter(element => Object.hasOwn(element.author) ? (Object.hasOwn((element.author), "login").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 611c4fe

Please sign in to comment.