-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update octokit version #50
base: master
Are you sure you want to change the base?
Conversation
src/client.js
Outdated
import { differenceBy, get, has } from 'lodash'; | ||
import Github from '@octokit/rest'; | ||
|
||
/** | ||
* GitHub configuration. | ||
*/ | ||
|
||
const config = { |
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.
No need to have this config
object anymore. Just create a timeout
constant (or defaultTimeout
based on the next comment).
Besides that, as a suggestion, it could just be a default value in case the constructor does not receive a specified timeout value. You would have something like this:
constructor({ timeout, token, ...options }) {
this.github = new Octokit({
auth: token,
request: { timeout: timeout || defaultTimeout },
...options
});
}
|
||
err.status = 404; | ||
throw err; | ||
}); |
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.
Add a break line here.
aaa69dc
to
f738ef5
Compare
f738ef5
to
41d5ff4
Compare
This PR updates
octokit
version to the latest and updates the respective dependencies.It also updates some
octokit
methods according to latest version.