gitcommitshow / rudder-github-app

A GitHub app for better Open Source collaboration on GitHub
MIT License
0 stars 1 forks source link

Cache GitHub API requests to avoid rate limit #58

Open gitcommitshow opened 1 month ago

gitcommitshow commented 1 month ago

The contribution page is making a lot of gh api requests. It can either be solved by using octokit/plugin-throttling, or by caching the requests.

gitcommitshow commented 1 month ago

Do this one or #59 before releasing #57

gitcommitshow commented 1 month ago

It looks like the throttling is enabled by default unless we turn it off. Reference - https://github.com/octokit/octokit.js?tab=readme-ov-file#octokit-api-client

The hooks can be used to enable caching