Total commits number
yousefelassal opened this issue · comments
Bug report
Description / Observed Behavior
The shown total commits number is not for the current year as displayed in the card.
Expected Behavior
The expected number for my profile is 1.3k.
Additional Context
I skimmed through the code, I've noticed you're using the GraphQL API.
I don't know if that would help but the api provides a from
variable which could be passed to the contributionCollection
contributionsCollection(from: "2024-01-01T00:00:00Z") {
totalCommitContributions
startedAt
}
when passing the start of the year it would return the expected number of contributions
"contributionsCollection": {
"totalCommitContributions": 1337,
"startedAt": "2024-01-01T00:00:00Z"
},
Thank you for taking the time to provide such thorough feedback! <3
Hi @yousefelassal 👋🏻 ! Could you take a look at this #7 THX!
the numbers make much more sense now!
Thank you for open sourcing such great project I love it!!
You're so kind! thank you! I'm pleased it's been useful to others. hh