iangreenleaf / githubot

Github API access, tailored for Hubot
MIT License
106 stars 38 forks source link

Added support for changing the default API URL for Github Enterprise installations #4

Closed jasondcamp closed 12 years ago

jasondcamp commented 12 years ago

This makes use of the HUBOT_GITHUB_URL variable to override the default API location. If the variable doesn't exist, it defaults to https://api.github.com/

iangreenleaf commented 12 years ago

Fantastic, thanks. I'm gonna write a small test for this, then I'll publish a new version.

iangreenleaf commented 12 years ago

I'm thinking I'm going to change the variable name, to avoid a potential collision with the GitHub web address (www.github.com). How does HUBOT_GITHUB_API sound? Alternatively we could do HUBOT_GITHUB_API_URL, but that just seems too long.

iangreenleaf commented 12 years ago

Aaaand landed, v0.2.0. Thanks again, I'm pumped about this. Such a cool bonus feature that I never anticipated.