Skip to content

Commit

Permalink
Use baseUrl and get rid of octokit deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Apr 16, 2018
1 parent 208ea96 commit 8b69fa3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/github-client.js
Expand Up @@ -21,9 +21,7 @@ const getGithubClient = ({ host, token }) => {
if (!githubClients[host]) {
const client = new GitHubApi({
version: '3.0.0',
protocol: 'https',
host: host === 'github.com' ? 'api.github.com' : host,
pathPrefix: host === 'github.com' ? '' : '/api/v3',
baseUrl: `https://${host === 'github.com' ? 'api.github.com' : host}${host === 'github.com' ? '' : '/api/v3'}`,
timeout: 10000,
headers: {
'user-agent': 'webpro/release-it'
Expand Down

0 comments on commit 8b69fa3

Please sign in to comment.