Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying exact informations #1675

Closed
asmsaiff opened this issue Mar 22, 2022 · 5 comments
Closed

Not displaying exact informations #1675

asmsaiff opened this issue Mar 22, 2022 · 5 comments
Labels
question Further information is requested.

Comments

@asmsaiff
Copy link

I've already passed the commit count around 1.5k+ in this year. But it's showing just this specific number at all time.

image

@rickstaa
Copy link
Collaborator

rickstaa commented Mar 22, 2022

@saifullahsiddique I double-checked the number of (public) commits made by your account using the https://docs.github.com/en/graphql/overview/explorer and it seems correct. You can check this using the following query:

query userInfo($login: String!) {
  user(login: $login) {
    contributionsCollection {
      totalCommitContributions
      restrictedContributionsCount
    }
  }
}
{"login": "saifullahsiddique"}

I think the problem above is caused by the fact that GitHub's contributions and commits are not equal. To quote @anuraghazra's answer on #1390 (comment):

Github shows "contribution" and we show "commits" contribution !== commits

I counted your stats and those are correct, github shows 91 because you have created a lot of repositories in 2021 which are counted as "contribution"

Hope that helps. Let me know if you have any other questions.

@rickstaa rickstaa added the question Further information is requested. label Mar 22, 2022
@asmsaiff
Copy link
Author

@rickstaa Then it should be called Total Public Commits, not just Total Commits. Total commits means private and public both.

Confusing stuffs.

@rickstaa
Copy link
Collaborator

rickstaa commented Mar 24, 2022

@saifullahsiddique, I understand the confusion. This naming was used to keep the card clean. I however think the behaviour becomes clear when reading the documentation. The documentation explains that you have to use the count_private=true flag for the private commits to show up (see https://github.com/anuraghazra/github-readme-stats#adding-private-contributions-count-to-total-commits-count).

@asmsaiff
Copy link
Author

@rickstaa

This flag is also not showing correct commit count as well. See bellow -

This is my contribution in this year -
image

But here it's showing 3.5k -
image

@rickstaa
Copy link
Collaborator

@saifullahsiddique The results are correct according to the graphql explorer. The problem you are showing is a known bug #1053. The text should say Total Commits (last year). We haven't had the time to fix this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested.
Projects
None yet
Development

No branches or pull requests

2 participants