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

Total commits count is wrong #3842

Closed
dingyuqi opened this issue Jul 11, 2024 · 4 comments
Closed

Total commits count is wrong #3842

dingyuqi opened this issue Jul 11, 2024 · 4 comments
Labels
bug Something isn't working.

Comments

@dingyuqi
Copy link

dingyuqi commented Jul 11, 2024

Describe the bug

I deployed the repo on vercel but the count of my total commits seems wrong. It doesn't match the contribution. Here is my url:

<div align='left'>
    <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://github-readme-stats-black-zeta-98.vercel.app/api?username=dingyuqi&show_icons=true&count_private=true&include_all_commits=true&custom_title=Dingyuqi's%20Stats&hide_border=true&theme=github_dark">
        <img src='https://github-readme-stats-black-zeta-98.vercel.app/api?username=dingyuqi&show_icons=true&count_private=true&include_all_commits=true&custom_title=Dingyuqi's%20Stats&hide_border=true' alt='Dingyuqi's%20Stats'>
    </picture>
    <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://github-readme-stats-black-zeta-98.vercel.app/api/top-langs/?username=dingyuqi&custom_title=Top%20Language&langs_count=4&hide=c%2B%2B&hide_border=true&layout=compact&theme=github_dark">
        <img src='https://github-readme-stats-black-zeta-98.vercel.app/api/top-langs/?username=dingyuqi&custom_title=Top%20Language&langs_count=4&hide=c%2B%2B&hide_border=true&layout=compact' alt='Top%20Language'>
    </picture>
</div>

Expected behavior

I expect that the count of my total commits is the same as the contribution count below:
image

there is 195 commits in 2024. Actually, I use &count_private=true&include_all_commits in url, so it should be a larger number than 195.

Screenshots / Live demo link

image

Additional context

@dingyuqi dingyuqi added the bug Something isn't working. label Jul 11, 2024
@dingyuqi dingyuqi changed the title Total commits count is worng Total commits count is wrong Jul 11, 2024
@TheGiraffe3
Copy link

But not all contributions are commits. Some are opening issues and pull requests.
Also, joining GitHub is one, though that wasn't this year for you.

@dingyuqi
Copy link
Author

But not all contributions are commits. Some are opening issues and pull requests.但并非所有贡献都是提交。有些是打开问题和拉取请求。 Also, joining GitHub is one, though that wasn't this year for you.此外,加入 GitHub 也是其中之一,尽管今年不适合您。

I know that not all contributions are commits, but in July 2024 I had 61 commits. I don't know why the commit count is much less than 61.
image

@fsantamaria1
Copy link

Did you enable the repo and user permissions when you created your PAT?

@dingyuqi
Copy link
Author

Did you enable the repo and user permissions when you created your PAT?

yes, you are right!!! I forgot to enable repo and user permissions. I updated the PAT and the commit count turned to be 84. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

3 participants