Add API throttling
thisismydesign opened this issue · comments
Although there're separate keys per repo and 5k available requests at a time, so hopefully a daily build will work just fine. Still, would be nice to at least get proper errors.
https://github.com/octokit/plugin-throttling.js/
actions/toolkit#106 and https://github.com/actions/toolkit/blob/fc9958ec6a57d1b08e9a387c49971faecd0f0405/packages/github/src/github.ts#L18 might be useful on how to use plugins.
AFAICT the prerequisite of this issue is #4 since there's no way to add plugins to @actions/github
.
actions/toolkit#106 and https://github.com/actions/toolkit/blob/fc9958ec6a57d1b08e9a387c49971faecd0f0405/packages/github/src/github.ts#L18 might be useful on how to use plugins.
What's the purpose of these links? I mean it's straightforward how to use the throttle-plugin with #14(I've verified it locally, let's first merge/finish the active branches).
What's the purpose of these links? I mean it's straightforward how to use the throttle-plugin
I think I've found @octokit/action
later and here I wasn't sure if/how we could use plugins. But you're right, now it should be straightforward.
Timebox 2h
Resolved by #18.