diff --git a/lib/robot.js b/lib/robot.js index c726396..5159498 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -139,8 +139,7 @@ class Robot { async auth (id, log = this.log) { const github = new GitHubApi({ debug: process.env.LOG_LEVEL === 'trace', - host: process.env.GHE_HOST || 'api.github.com', - pathPrefix: process.env.GHE_HOST ? '/api/v3' : '', + baseUrl: process.env.GHE_HOST && `https://${process.env.GHE_HOST}/api/v3`, logger: log.child({name: 'github', installation: id}) }) diff --git a/package.json b/package.json index 18daab1..3b17285 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "author": "Brandon Keepers", "license": "ISC", "dependencies": { - "@octokit/rest": "15.1.9", + "@octokit/rest": "15.2.0", "bottleneck": "^2.2.0", "bunyan": "^1.8.12", "bunyan-format": "^0.2.1",