lacolaco / contributors-img

Home Page:https://contrib.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub API Pagination support

ehsandeep opened this issue · comments

Hi,

Thank you for creating and hosting this project, I'm looking to embed this project in GitHub readme for contributors visibility but noticed it only supports 100 users as max, we can add pagination to fetch all contributors from GitHub API, for example- ehpankaj@c3cc2f5

@ehsandeep Thanks for the advice. Currently, I'm limiting users up to 100 by design because rendering all contributors in huge repositories by default spends a lot of computing resources.

But I think it can be solved by something like ?max=120 query params to support that use-case as opt-in. I'll begin working on it in a few weeks.

definitely that will help @lacolaco, thank you

@ehsandeep I've added the max param to contributors image URL. For example, https://contrib.rocks/image?repo=angular/angular-ja&max=50 will work.
Deployment is in progress. Try it after few hours!

Thank you @lacolaco for adding this support.