Graphql query to fetch commits from all time #3494
-
What is the Graphql query to fetch commits for all the time including the start of the github account to current date? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, @itsvaibhavmishra! We do not use GraphQL for this purpose. Currently we fetch total commits count using GitHub HTTP API. Here is the code: https://github.com/anuraghazra/github-readme-stats/blob/master/src/fetchers/stats-fetcher.js#L170-L187. As far as i know it was implemented this way because it's impossible to fetch total commits count using GraphQL, only count for selected year, at least it was like that a few years ago, i didn't checked if something changed. |
Beta Was this translation helpful? Give feedback.
Hey, @itsvaibhavmishra! We do not use GraphQL for this purpose. Currently we fetch total commits count using GitHub HTTP API. Here is the code: https://github.com/anuraghazra/github-readme-stats/blob/master/src/fetchers/stats-fetcher.js#L170-L187. As far as i know it was implemented this way because it's impossible to fetch total commits count using GraphQL, only count for selected year, at least it was like that a few years ago, i didn't checked if something changed.