Skip to content

GitHub stats question #2864

Answered by rickstaa
cxhello asked this question in Q&A
Jun 21, 2023 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Two things cause your card to show up with 0 commits. First, the GitHub rest API which we use to fetch the total commits when include_all_commits=true sometimes fails (see #1515 (comment)). In that case, the code returns 0. Because we use caching for the cards, this incorrect value stays on the card for 4 hours before being fixed. When you request the card through the URL, you likely use a slightly different syntax, breaking the caching mechanism. You can see this is the case by appending a random string (e. g. random=2345545345).

[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=cxhello&include_all_commits=true&random=2345545345)](https://github.com/anuraghaz…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@cxhello
Comment options

@rickstaa
Comment options

@rickstaa
Comment options

@cxhello
Comment options

@rickstaa
Comment options

Answer selected by rickstaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants