Skip to content
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

feat: upgrade octokit to 16 #282

Merged
merged 7 commits into from
Aug 20, 2020
Merged

feat: upgrade octokit to 16 #282

merged 7 commits into from
Aug 20, 2020

Conversation

mmarchini
Copy link
Contributor

@mmarchini mmarchini commented Aug 15, 2020

Resolved all remaining deprecations on v15 (convert everything to promises because callbacks were removed), upgraded to v16, fixed tests (the payload format of one request changed and nock was not matching it anymore). I already fixed some deprecations on v16, but didn't commit yet so that the PR is not overwhelming. With this PR we'll have access to createDispatchEvent, which means it will unblock #272.

P.S.: Each commit converts one callback-based function into Promises/async, so the best way to read this PR is going on each commit individually.

This was the last GitHub API call not covered by our tests.
@mmarchini mmarchini requested a review from a team as a code owner August 15, 2020 08:03
lib/push-jenkins-update.js Outdated Show resolved Hide resolved
lib/push-jenkins-update.js Outdated Show resolved Hide resolved
lib/node-repo.js Outdated Show resolved Hide resolved
lib/node-repo.js Outdated Show resolved Hide resolved
@mmarchini
Copy link
Contributor Author

@targos I think I addressed everything :)

@targos
Copy link
Member

targos commented Aug 20, 2020

LGTM

@mmarchini mmarchini merged commit e84d638 into nodejs:master Aug 20, 2020
@mmarchini mmarchini deleted the octokit16 branch August 20, 2020 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants