github-readme-stats/src
Rick Staa 60fae292a3
feat: enable multi page star fetching for private vercel instances (#2159)
* feat: enable multi-page stars' fetching for private vercel instances

This commit enables multi-page stars' support from fetching on private Vercel
instances. This feature can be disabled on the public Vercel instance by adding
the `FETCH_SINGLE_PAGE_STARS=true` as an env variable in the public Vercel
instance. This variable will not be present when people deploy their own Vercel
instance, causing the code to fetch multiple star pages.

* fix: improve stats multi-page fetching behavoir

This commit makes sure that the GraphQL api is only called one time per
100 repositories. The old method added one unnecesairy GraphQL call.

* docs: update documentation

* style: improve code syntax

Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>

* lol happy new year

* docs: remove rate limit documentation for now

Remove the `FETCH_SINGLE_PAGE_STARS` from documentation for now since it
might confuse people.

* fix: fix error in automatic merge

* feat: make sure  env variable is read

Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2023-01-21 18:32:37 +01:00
..
cards Revert "Revert "Add loading Animation to Most used Language card (#2197)" (#2396)" (#2419) 2023-01-16 12:30:39 +01:00
common Revert "Revert "Add loading Animation to Most used Language card (#2197)" (#2396)" (#2419) 2023-01-16 12:30:39 +01:00
fetchers feat: enable multi page star fetching for private vercel instances (#2159) 2023-01-21 18:32:37 +01:00
calculateRank.js refactor: migrate to using arrow functions (#2033) 2022-11-21 10:07:09 +01:00
getStyles.js feat: allow users to pass ring_color param (#2075) 2022-11-19 20:18:42 +01:00
index.js build: create npm package (#2151) 2022-10-13 10:27:19 +02:00
translations.js refactor: migrate to using arrow functions (#2033) 2022-11-21 10:07:09 +01:00