anuraghazra / anuraghazra/github-readme-stats

Consider only counting unique commits

Open
#2,655 8 comments 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

I maintain a repository https://github.com/jupyter/docker-stacks/, which has 848 my commits.
Unfortunately, some users, instead of forking this repository, create their own copy.
This makes `github-readme-stats` count commits in this repos as well.

https://github-readme-stats-eight-theta.vercel.app/api?username=mathbunnyru&show_icons=true&theme=solarized-light&include_all_commits=true

This chart shows 68.6k commits, which would be awesome, but it's approximately 40x-80x larger than the correct number.
If I search my commits I see all these duplicates: https://github.com/search?o=desc&s=committer-date&type=Commits&q=author%3Amathbunnyru&p=94

### Expected behaviour

I expect `github-readme-stats` to parse the commits and only list the number of unique SHAs.
This way it would show the real number of commits.

### Screenshots / Live demo link

Screenshot 2023-04-27 at 15 33 08
Screenshot 2023-04-27 at 15 33 22

### Additional context

_No response_

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.