github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

The total number of commits displayed on my generated card is inaccurate.

Open ezzamo opened this issue 1 year ago • 7 comments

Describe the bug

I deployed my README repository on Vercel, but the total commit count appears to be incorrect on my card. It therefore does not align with my total contributions. Here is the mardown (and URL) I used in my file:

<div align=left>
  <img width=390 src="https://github-readme-stats-snoeps-projects.vercel.app/api?username=SnoepNFTs&include_all_commits=true&show_icons=true&theme=react&rank_icon=github&border_radius=10" alt="readme statistics" />
</div>

Expected behavior

I expect that the count of my total commits are anywhere near the contributions shown on my public github profile:

I made sure to enable the repo and user settings for my PAT environment variable.

image

image

Screenshots / Live demo link

image

Additional context

I experimented with both &count_private=true and &include_all_commits to see if these options would make any difference, but unfortunately, they did not.

ezzamo avatar Jul 16 '24 11:07 ezzamo

I do want to add that new commits that I am pushing appear to be added to the total count correctly. I believe the issue lies with initially fetching the correct number of (total) commits.

ezzamo avatar Jul 17 '24 14:07 ezzamo

I also have the same problem, specifically, my total contribution is 960, but only 910 is displayed, missing dozens of commits

AZCodingAccount avatar Jul 19 '24 05:07 AZCodingAccount

I'm having the same issue. My private commits are not showing up, even though I followed the steps in the video tutorial.

ImanNoferesti avatar Jul 19 '24 21:07 ImanNoferesti

same!

om3ga6400 avatar Oct 01 '24 18:10 om3ga6400

I would like to work on this , Please assign me this issue under hacktoberfest 2024. Thanks.

krrish-sehgal avatar Oct 14 '24 06:10 krrish-sehgal

Has any progress been made? I'd love to see this fixed as well :)

udlose avatar May 25 '25 14:05 udlose

Same thing here

Image

The top widget actually shows the correct number of commits.

The bottom widget (which has the issue) is set as folows with include_all_commits and count_private

husseinhareb avatar Jun 16 '25 17:06 husseinhareb

Still having this problem. Running my own deployment on Vercel with all of the PAT permissions given

kermitine avatar Aug 07 '25 05:08 kermitine

Still having this problem. Running my own deployment on Vercel with all of the PAT permissions given

You can use #4353 and deploy that instance

AdiGaikwad avatar Aug 12 '25 08:08 AdiGaikwad

I'm having the same issue

wynardelarosa avatar Aug 22 '25 03:08 wynardelarosa

I'm having the same issue, sad

TinderZ avatar Nov 11 '25 09:11 TinderZ

I'm having the same issue, sad

Try #4353 and deploy that instance

AdiGaikwad avatar Nov 13 '25 06:11 AdiGaikwad

I'm having the same issue, sad

Try #4353 and deploy that instance

This instance seems to be working 🎉

aleksaToljic avatar Nov 23 '25 13:11 aleksaToljic

I'm having the same issue, sad

Try #4353 and deploy that instance

This instance seems to be working 🎉

Since I have a bunch of work-only GitHub accounts, It bothered me that I cannot have combined stats, did a little vibe coding: https://github.com/aleksaToljic/github-readme-stats-n/blob/master/MULTI_PROFILE_GUIDE.md

Image

will improve it in the future, for now it does the work I want, thank you guys for awesome open source project 🎉

aleksaToljic avatar Nov 23 '25 18:11 aleksaToljic

I'm having the same issue, sad

Try #4353 and deploy that instance

This instance seems to be working 🎉

Excuse me, I'm not sure how to deploy this instance. Should I merge the #4353 commit into [myself:master] from AdiGaikwad:master?

TinderZ avatar Nov 24 '25 04:11 TinderZ

I'm having the same issue, sad我遇到了同样的问题,难过

Try #4353 and deploy that instance尝试部署该实例

This instance seems to be working 🎉这个实例似乎运行正常 🎉

@AdiGaikwad @aleksaToljic Excuse me, I'm not sure how to deploy this instance. Should I merge the #4353 commit into [myself:master] from AdiGaikwad:master?打扰一下,我不确定如何部署这个实例。我应该将 #4353 commit 从 AdiGaikwad:master 合并到 [myself:master] 吗?

That's exactly what I did. And, this instance work! 🎉🎉🎉

By the way, after deployment, I encountered an Error [ERR_MODULE_NOT_FOUND]. This is because the /src/common/utils.js file referenced in the code no longer exists. Upon checking the file structure, I found that src/common/utils.js has been split into multiple independent files (e.g., error.js, log.js, http.js, fmt.js), but the src/fetchers/stats.js file still attempts to import modules from the old utils.js. I fixed the import path in src/fetchers/stats.js in my branch, pointing it to the correct new file location.

Hopefully, this will save others some trouble. Thank u guys for awesome open-source project. Image

TinderZ avatar Nov 24 '25 04:11 TinderZ