anuraghazra / anuraghazra/github-readme-stats

Discrepancy in Total Commits Count for 2024

Open
#3,718 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
79.8k
Forks
37.7k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

The total commits count for the year 2024 on my GitHub Readme Stats card is displaying as 591 commits, whereas I have actually made only 118 commits. It seems the card is erroneously calculating the total number of commits over the last 365 days instead of the specific year in question.

### Expected behavior

The Total Commits count for 2024 should accurately reflect the number of commits made within that specific year, rather than over a rolling 365-day period.

### Screenshots / Live demo link

![My GitHub Readme Stats Card](https://github-readme-stats-git-master-tgentil.vercel.app/api?username=Tgentil&title_color=0891b2&text_color=ffffff&icon_color=0891b2&bg_color=1c1917&hide_border=true&show=prs_merged_percentage&show_icons=true&cache=86400)

![Number of Commits Made in 2024](https://github.com/anuraghazra/github-readme-stats/assets/88681055/469f919b-7a33-4d05-aca9-03c002cc2f71)

### Additional context

Additional context: This issue of incorrect commit count for a specific year has been previously discussed in the GitHub Readme Stats repository, as seen in [Issue #3579](https://github.com/anuraghazra/github-readme-stats/issues/3579). However, that issue was closed abruptly before the proposed solution could be merged or fully resolved. This ongoing problem still impacts the accuracy of the Total Commits count on the stats card.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.