Conversation
332a377 to
d7b618a
Compare
d7b618a to
f55fa96
Compare
|
@gr2m shouldn't the dependency to |
…dpoints now accept a "labels" namespace
|
I think I’ll need your help, the implementation is a little confusing right now. In Lines 71 to 84 in fe2a3fc Now the Lines 45 to 59 in fe2a3fc Did something get mixed up here? For v16, we no longer need to load the I also hope that we no longer need the Proxy to wrap the endpoint methods, instead we could create a proper Octokit plugin for throttling: https://github.com/octokit/rest.js/issues/1099. We could extract the logic from Instead of using a Proxy, we can do something like this: octokit.hook.wrap('request', (request, options) {
return throttle(request.bind(null, options))
}) |
|
🎉 This PR is included in version 5.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
For info there was indeed a bug with |
v16 is still work in progress. Tests should pass once https://github.com/octokit/rest.js/pull/1094 is released.
For v16, we should be able to get rid of requiring
@octokit/rest/lib/routes. With v16, you can get the request method withgithub.repos.get.endpoint().method