Comments (19)
@1UC1F3R616 it is currently shows 1years total commit, its a limitation of github api. checkout #15 for more info
from github-readme-stats.
@anuraghazra I think, at the moment it's better to change "Total Commits:" to "Total Commits (last year):".
from github-readme-stats.
Hmm it should be fine.. it fetches the data from Github GraphQL api so it can't be invalid. although it is possible that you contributed to github organizations and i think those are not counted. #1
from github-readme-stats.
Ah okay, very strange because PRs count is close to correct but commit count is still far off even if you exclude org commits.
from github-readme-stats.
@anshumanv i think i got it. the issue is that github only returns last years contribution commits
{
user(login: "anshumanv") {
contributionsCollection(from: "2016-08-13T14:31:00Z", to:"2020-07-10T08:35:06.094Z") {
totalCommitContributions
}
}
}
I can set from and to variables in the query but github does not allow more than one year's contributions to be shown at once
I have to find a way to fix this. do you have any ideas on this?
from github-readme-stats.
@anshumanv what i did is that looped through all the years and fetched the commits individually and seems kinda close.
from github-readme-stats.
Yes, this is the basic brute force solution but I think you'll run into API rate limit after a while if you do this for every user.
from github-readme-stats.
Maybe you can give an option for users to use their own tokens?
from github-readme-stats.
No i don't think i can hit the rate limit because it's already authenticated by the server... i set auth token in env.
from github-readme-stats.
Also i don't think i can give users an option to add their own tokens because that would be a huge security vulnrability if someone did like this /api?username=abc&token=SECRET_TOKEN
because the url would be public
from github-readme-stats.
No i don't think i can hit the rate limit because it's already authenticated by the server... i set auth token in env.
Yep even that doesn't give you infinite requests 😄 , IIRC you get 5k req per hour which can work for now till this gets really popular.
from github-readme-stats.
Also i don't think i can give users an option to add their own tokens because that would be a huge security vulnrability if someone did like this /api?username=abc&token=SECRET_TOKEN because the url would be public
Yes, only option is for user to host their own app but that seems like an overkill for now
from github-readme-stats.
And anyways tokens in request params will be deprecated in near future. You have to send it in body.
from github-readme-stats.
No i don't think i can hit the rate limit because it's already authenticated by the server... i set auth token in env.
Yep even that doesn't give you infinite requests , IIRC you get 5k req per hour which can work for now till this gets really popular.
Just hope not everyone would have commits from 1980's like yours 😆 your account will hit the api 42 times 😆
from github-readme-stats.
Just hope not everyone would have commits from 1980's like yours 😆 your account will hit the api 42 times 😆
Lol, that was when in my 1st year I committed using a messed up system clock, forgot to revert it 😥
Maybe I should take care of it real quick 😛
from github-readme-stats.
@anshumanv It's showing yearly commit for me I see not total from when I started
Is this a feture for future pr or I using some wrong parameter?
from github-readme-stats.
I don't know much, but is it possible that before people use it, they have to fork it, modify the auth token and then request? So like, in future you don't have to face rate limit of 5k!? I might even be wrong, conceptually.
from github-readme-stats.
Hey @vasugamdha Let's discuss about rate limit on another issue maybe? you can open an issue to discuss it or hop into my discord :) https://discord.com/invite/VK4k3Br
from github-readme-stats.
Fixed in #211
from github-readme-stats.
Related Issues (20)
- Add an option to display byte count for Top-languages HOT 7
- The submission of private warehouses cannot be calculated HOT 2
- Could not resolve to a User with the login of 'gungunsaluja'. HOT 1
- Discrepancy in Total Commits Count for 2024 HOT 1
- Wakatime leaderboards stats HOT 3
- Top Languages Card having issues with picture and source elements for light and dark mode
- Revisiting gist langs
- Commit Count Inaccuracies for Authored and Committed Commits in GitHub Profile Stats
- Private Repository HOT 3
- Inaccurate streak count HOT 5
- Top Langs error (theme=react)
- Streak only tracks to January 1st HOT 2
- Option to include a category for repos without a recognized language on languages card
- GitHub Infer Colourscheme
- Align HOT 3
- Width BUG HOT 4
- Bug in Calculating the Top Langs HOT 1
- Github readme-stats takes too long to update
- Ability to specify allowed usernames for deployment
- Add multiple languages for RepoCards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-readme-stats.