Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Current streak and longest streak stuck at 369 days #139

Open
franznkemaka opened this issue Nov 18, 2021 · 2 comments
Open

🐛 Current streak and longest streak stuck at 369 days #139

franznkemaka opened this issue Nov 18, 2021 · 2 comments

Comments

@franznkemaka
Copy link

Hi Bloggify,

thanks for the awesome lib. I've been using it for almost a year. Unfortunately, the current streak and longest streak is stuck at 369 days.

Cause:
github-calendar uses github-calender-parser and it scrapes GiHub's graph and parses its content to extract the commit dates in order to create a streak count. Yet the graph can't display more days than that.

Potential solution:
One potential solution is to use https://github.com/DenverCoder1/github-readme-streak-stats API to get the longest streak and current streak days. It is server-based and basically uses GitHub API to get all committed dates of the user with the best accuracy.

What do you guys think about this, should I submit a PR?

@IonicaBizau
Copy link
Member

It is interesting topic... We are limited to the data we get from GitHub. We could implement a handler to be able to set it in a custom way (such the one you mentioned).

@franznkemaka
Copy link
Author

Great @IonicaBizau,

I will create an API that fetches the data from GitHub and support a PR with implementations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants