Skip to content

Commit

Permalink
Update GitHubAPI.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mashbourne committed Mar 13, 2017
1 parent 8efdf2b commit 0c0bc9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/platforms/github/GitHubAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ export class GitHubAPI {
if (this.token !== undefined) {
headers["Authorization"] = `token ${this.token}`
}

return this.fetch(`https://api.github.com/${path}`, {

const baseUrl = process.env["DANGER_GITHUB_API_HOST"] || "https://api.github.com"

return this.fetch(`${baseUrl}/${path}`, {
method: method,
body: body,
headers: {
Expand Down

0 comments on commit 0c0bc9e

Please sign in to comment.