anuraghazra / anuraghazra/github-readme-stats

Show all time contributed to

Open
#2,282 13 comments 33 reactions 0 assignees View on GitHub
:star: top feature :star: top issue enhancement stats-card upstream
Dominant language
JavaScript
Stars
79.8k
Forks
37.7k
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

The current implementation only shows the repositories a user has contributed to in the last year.

### Describe the solution you'd like

It would be nice to show the contributions a user has contributed to for all years.

### Additional context

This issue follows up on #2269. As explained in https://github.com/anuraghazra/github-readme-stats/issues/2269#issuecomment-1321167681, the current implementation (i.e. only showing the last year) is due to a GraphQL limitation. I created a feature request in https://github.com/orgs/community/discussions/39589 that should allow us to show the total time contributed to stats for the Private Vercel instance and GitHub action. Please show your support there to get this feature implemented 🙏🏻:star_struck:.

### TODOs

- [x] Add a feature request to git https://github.com/community/community/discussions asking for an easy way to retrieve the total repositories a user has contributed to and update the documentation. For example, by adding date selectors (i.e. `from` and `to`) to the `repositoriesContributedTo` object.

**UPDATE:** I just created https://github.com/community/community/discussions/39589.
- [ ] Implement a function that loops through the years and sums the result of `repositoriesContributedTo.totalCount`. Release this feature under an env variable so people can enable it when they deploy their own Vercel instance (see https://github.com/anuraghazra/github-readme-stats/pull/2266 and https://github.com/anuraghazra/github-readme-stats/pull/2159 for an example).

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.