Is your feature request related to a problem? Please describe.
The "Total Commits" on the readme card is usually very small to my frequency of using github since many of my repositories are private projects.
Describe the solution you'd like
Add a new section in the widget to says the number of commits in private repositories or include this number in "Total Commits".
Describe alternatives you've considered
No other real alternatives.
Additional context
I'm not sure about how such a feature could be implemented as I don't know if there is such a feature in the github api. Perhaps I was thinking, to use the number of "contributions" a user has since that includes commits to private repositories and follows a strict counting guideline.
I know the GraphQL api has a restrictedContributionsCount field under the ContributionsCollection object we could get the private count from if the user has enabled private contributions. Up to @anuraghazra
I think including private contributions will be great for people like me. Without it, my "total commits" would look very miserable :laughing:
Hi @Nathan13888 Thanks for opening the issue. :D
Maybe we can add a option for the user's to choose if they want to show private contribution or not.
Hello 馃憢 first of all thank you for working on this, its such a cool project 馃憤
I'd be happy to work on implementing this feature if you would like 馃槃
Hello first of all thank you for working on this, its such a cool project
I'd be happy to work on implementing this feature if you would like
@FabioRosado
Yup go ahead, feel free to contribute :D
This function is a good idea.
Hello,
I had a look at this and noticed that if you use your own account, the commits on private repos will be counted towards your Total Contributions but not if using the hosted url from this repository.
I've tried to use restrictedContributionsCount but it returns only 1 in my case, which is definitely wrong 馃槃 So I'm not entirely sure if it's possible to add the count of private contributions from an account that isn't your own.
-- EDIT --
Actually, I tried with a different user and it seems that if the user shares the private count it will add the right count (I've used your username and seems to be working as expected @anuraghazra) will raise a PR soon.
Most helpful comment
Hi @Nathan13888 Thanks for opening the issue. :D
Maybe we can add a option for the user's to choose if they want to show private contribution or not.