Private commits count not correct #2498
-
Update: Issues found so far:
Original post: Hi, I set up a Github stats card on my README earlier today, and the private commits count seems impossibly high to me. I've done some investigating, and the value being shown doesn't seem to align with what is mentioned in the docs. Since this stat is highlighted specifically in the FAQs, I thought I'd better ask a question rather than opening an issue, in case I've just not understood it properly. The issueWhen I create a Github stats card for myself using the
InvestigationI've confirmed that the value is indeed what the Github API is returning, but looking at the Github GraphQL API schema file, it does not suggest a time frame at all. This suggests to me that the count is being performed against all of the commits on Github that I've ever made, rather than just for 2023. That seems a lot more realistic/plausible to me. Unfortunately, if this is the case, I can't see any way of easily filtering that metric down to work for a specific timeframe. Though, this is the first time I've ever seen this API, so someone with more familiarity than me might have some ideas? Regardless, it would be great to know whether this is the case. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
In fact, I've just realised that But in the logic to calculate this value, the code adds total private contributions to the public commits count: And there's a conversation specifically to highlight that commits and contributions are NOT the same. Based on that, I definitely don't think this value represents the total commits including private commits. |
Beta Was this translation helpful? Give feedback.
-
Doing some further playing around, I've just confirmed that the counts currently being shown on the Github stats cards aren't actually for the current year (2023), they're for the last 365 days. Interestingly, it shows that I've definitely made ~735 private contributions in the last year, which is helpful to know, it's just that it's not equivalent to private commits. For 2023 so far: For the last 365 days (i.e. the values that are actually being shown): |
Beta Was this translation helpful? Give feedback.
-
Going to mark this discussion as solved, with the details added to the top of the initial discussion message. Will raise two bug issues. |
Beta Was this translation helpful? Give feedback.
Going to mark this discussion as solved, with the details added to the top of the initial discussion message.
Will raise two bug issues.