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

Show all time contributed to

Open rickstaa opened this issue 3 years ago • 13 comments

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).

rickstaa avatar Nov 22 '22 08:11 rickstaa

This would be nice! I upvoted you on the GitHub discussion page!

jgphilpott avatar Nov 23 '22 06:11 jgphilpott

@jgphilpott Great thanks!

rickstaa avatar Nov 23 '22 15:11 rickstaa

Agreed this would be a nice improvement

Jorge-Neves avatar Nov 24 '22 06:11 Jorge-Neves

@Jorge-Neves Great, thanks for your support. Please also show your support on https://github.com/orgs/community/discussions/39589 so that GitHub implements the feature needed to implement #2282.

rickstaa avatar Nov 24 '22 14:11 rickstaa

Hi @rickstaa, I want to work on this issue, if this is issue has been assigned to someone, can I also collaborate??

yaten2302 avatar Aug 22 '23 14:08 yaten2302

Hi @rickstaa, I want to work on this issue, if this is issue has been assigned to someone, can I also collaborate??

@yaten2302 As far as I understand, at the moment this feature cannot be implemented due to GraphQL limitations. Currenttly you need to support this feature request and wait until it will be implemented. @rickstaa Did i understand correctly?

qwerty541 avatar Aug 24 '23 02:08 qwerty541

Hi @rickstaa, I want to work on this issue, if this is issue has been assigned to someone, can I also collaborate??

@yaten2302 As far as I understand, at the moment this feature cannot be implemented due to GraphQL limitations. Currenttly you need to support this feature request and wait until it will be implemented. @rickstaa Did i understand correctly?

@qwerty541, I think your understanding of this feature request is correct. Thanks for jumping in. Without this feature request being merged, the only way to have all-time contributed show up is when we release the GitHub action. I plan to release this feature, more accurate language, and stats calculations in October/November.

rickstaa avatar Aug 24 '23 06:08 rickstaa

Hi @rickstaa, I want to work on this issue, if this is issue has been assigned to someone, can I also collaborate??

@yaten2302 As far as I understand, at the moment this feature cannot be implemented due to GraphQL limitations. Currenttly you need to support this feature request and wait until it will be implemented. @rickstaa Did i understand correctly?

@qwerty541, I think your understanding of this feature request is correct. Thanks for jumping in. Without this feature request being merged, the only way to have all-time contributed show up is when we release the GitHub action. I plan to release this feature, more accurate language, and stats calculations in October/November.

Is someone currently working on GitHub action feature?

I am also curious about what is "more accurate langauge" and "stats calculations" features.

qwerty541 avatar Aug 26 '23 05:08 qwerty541

Hi @rickstaa, I want to work on this issue, if this is issue has been assigned to someone, can I also collaborate??

@yaten2302 As far as I understand, at the moment this feature cannot be implemented due to GraphQL limitations. Currenttly you need to support this feature request and wait until it will be implemented. @rickstaa Did i understand correctly?

@qwerty541, I think your understanding of this feature request is correct. Thanks for jumping in. Without this feature request being merged, the only way to have all-time contributed show up is when we release the GitHub action. I plan to release this feature, more accurate language, and stats calculations in October/November.

Is someone currently working on GitHub action feature?

I am also curious about what is "more accurate langauge" and "stats calculations" features.

Currently, the GitHub action is available but not officially released yet (see: https://github.com/marketplace/actions/grs-action). I think @Zo-Bro-23 can provide more details but the main blockers for a proper release include:

  • Completing the npm package pull request (PR) at https://github.com/anuraghazra/github-readme-stats/pull/2473. Once done, @anuraghazra needs to release it under the github-readme-stats node organization.
  • Consider moving the action under the https://github.com/github-readme-stats organization.

Once these tasks are completed, we can proceed with the GitHub action release. We'll also merge the following PRs to enhance GitHub and language statistics using environmental variables:

  • https://github.com/anuraghazra/github-readme-stats/pull/1122
  • https://github.com/anuraghazra/github-readme-stats/pull/2111
  • https://github.com/anuraghazra/github-readme-stats/pull/1691

Additionally, after the GitHub action is released, we can explore modifying the code to aggregate contributions across all years."

rickstaa avatar Sep 03 '23 09:09 rickstaa