Skip to content

Average commits per day seems to be much lower than its actual value #743

Locked Answered by lowlighter
developomp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi 👋 !
I think it's because the commits gets divided by your account age:
1500/(3*365) ≈ 1.37 ≈ 1.44

Normally the commits count should be your total amount of commits, but it can be limited due to GitHub search api (so it'll fallback to the last year). Because of this, it results in a lower average like you reported.

try {
console.debug(`metrics/compute/${login}/base > loading user commits history`)
const {data:{total_count:total = 0}} = await rest.search.commits({q:`author:${login}`})
data.user.contributionsCollection.totalCommitContributions = Math.max(total, data.user.contributionsCollection.to…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@developomp
Comment options

Comment options

You must be logged in to vote
1 reply
@developomp
Comment options

Answer selected by developomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment