-
Notifications
You must be signed in to change notification settings - Fork 9
Add Github Enterprise support #51
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
Conversation
Thanks! We are actually considering moving away from the GitHub comment notifications, now that GH supports multiple PR statuses, because we believe the latter is a better user experience. Would the PR statuses meet your needs? If so, can we update this PR to only provide the status-based updates (therefore, it won't need either of the two boolean/checkbox checkbox fields we ask for currently). Thanks! |
Thanks @niftyn8!! I'm not sure if we want to go this way or use the repository url to check whether you're using GitHub Enterprise or github.com. Check the meta endpoint out https://developer.github.com/v3/meta The self signed certificate will be a problem for sure, since we don't have a way to handle that right now. We've had similar issues in the past and it's something that we should address somehow. //cc @noahd1 |
Totally, that sounds great. Happy to make that change myself or leave it to y'all, you just tell me.
Am I understanding correctly you're saying you're not sure if there should be two seperate Github classes, one for Github proper and one for Enterprise, or if Thinking the latter actually might be better. Was just looking for a short path with this PR. Let me know if you'd like me to make some changes or if you want to take it from here. Thanks! |
RE: the self-signed certificate. My gut would be to add a boolean configuration option titled "Verify SSL certificate" (defaults to @niftyn8 If I understand correctly, I think Calavera was commenting not on implementation, but on whether functionally we want to represent this as two different integrations (GitHub.com and GH:E) to end-users, or whether we would auto-detect the difference behind the scenes. @calavera given an arbitrary Git host (e.g. |
Ah cool. Thanks for the clarification. Again, let me know if I can do anything to help move everything forward and get stuff off y'all's plates. Appreciate the help! |
@niftyn8 can you please update this PR to?:
|
Hey @brynary let me know if this looks good. Disabling SSL Verification this way worked well for us using the github pull request test. |
Do you think it makes more since to have a checkbox defaulted to checked for SSL Verification or have a "Disable SSL Verification" checkbox that's defaulted to unchecked and only disable if it gets checked? |
Closing this in favor of #80 |
Not sure what else might need to be done to get this working... but the integration test works for me when configured for our Github Enterprise instance. Here's a screen shot of the results from that:
NOTE: We have a self-signed cert... not sure what the best way to handle that would be for you guys...