-
Notifications
You must be signed in to change notification settings - Fork 21
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
Promisify internals #112
Promisify internals #112
Conversation
c04e366
to
5db6f2e
Compare
5db6f2e
to
10adf4f
Compare
I'll drop the |
f50bb7f
to
1c887b4
Compare
+ drop `async` dependency
0b78a88
to
ed0044e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you! A few minor comments to resolve, but I love the PR.
Thanks for all the effort! And the commits in this PR are clear and atomic, thank you. In my workflow once a PR is approved and no comments are outstanding, it’s up to the author to merge at their convenience. There may be reasons for delay: perhaps some more last-minute ideas pop up, or a merge needs an oversight for deployment or otherwise. So feel free to merge when convenient. Or let me know if you prefer a different workflow! |
I’m glad to be of help! And I’m glad that Octokit had an elegant way to throttle the API that allowed this PR to actually make it faster. |
Started as a lint but, given the overlap, I think it's best to promisify first. No need to lint code that won't exist.
Best reviewed without whitespace.
This isn't a complete promisification, it just includes @octokit/plugin-throttling.js and changes a few callbacks to promises to make it more readable, catch more errors and reduce code along the way.
Excluding the dependency change, this PR reduces our code by
129 lines148 lines 🥳