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

Contributors shows first 100 only #205

Open
Liam-Tait opened this issue Oct 7, 2021 · 0 comments
Open

Contributors shows first 100 only #205

Liam-Tait opened this issue Oct 7, 2021 · 0 comments

Comments

@Liam-Tait
Copy link

The Github API form contributors1 per_page parameter has a max 100
When fetching contributors2 the per_page parameter is set to 999.

Based upon the 999 param, the assumption is that this was intended to display all contributors, this is not the case.
In order to display all contributors, fetching multiple pages would be required.

Footnotes

  1. https://docs.github.com/en/rest/reference/repos#list-repository-contributors

  2. https://github.com/date-fns/date-fns.org/blob/2d8ebd496a093135b1b9ec8b52b440ac45634b1a/src/utils/useContributors/index.ts#L5

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

No branches or pull requests

1 participant