-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
support GitHub enterprise #165
Conversation
DANGER_GITHUB_API_BASE_URL like ruby version
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.
This change is looking good - thanks for contributing! The build is failing due to lint errors on these two lines though.
source/platforms/github/GitHubAPI.ts
Outdated
@@ -129,8 +129,10 @@ export class GitHubAPI { | |||
if (this.token !== undefined) { | |||
headers["Authorization"] = `token ${this.token}` | |||
} | |||
|
|||
return this.fetch(`https://api.github.com/${path}`, { | |||
|
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.
Trailing whitespace
source/platforms/github/GitHubAPI.ts
Outdated
return this.fetch(`https://api.github.com/${path}`, { | ||
|
||
const baseUrl = process.env["DANGER_GITHUB_API_BASE_URL"] || "https://api.github.com" | ||
|
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.
Trailing whitespace
Codecov Report
@@ Coverage Diff @@
## master #165 +/- ##
=====================================
Coverage 0% 0%
=====================================
Files 3 3
Lines 93 93
Branches 17 17
=====================================
Misses 93 93 Continue to review full report at Codecov.
|
Thanks for the changes! |
When do you plan to release this ? |
very soon, just wanted to get #156 in and then do a bit of cleanup now |
shipped in 0.12.0 |
Support for DANGER_GITHUB_API_BASE_URL env var http://danger.systems/guides/getting_started.html#enterprise-github
Resolves #153