Skip to content

Commit

Permalink
Allow user to specify baseURL for github api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kchang authored and Mikhail Sobolev committed May 19, 2015
1 parent 1facd5a commit 88c1ce3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions master/buildbot/status/github.py
Expand Up @@ -38,7 +38,8 @@ class GitHubStatus(StatusReceiverMultiService):
"""

def __init__(self, token, repoOwner, repoName, sha=None,
startDescription=None, endDescription=None):
startDescription=None, endDescription=None,
baseURL=None):
"""
Token for GitHub API.
"""
Expand All @@ -59,7 +60,7 @@ def __init__(self, token, repoOwner, repoName, sha=None,
self._sha = sha
self._repoOwner = repoOwner
self._repoName = repoName
self._github = GitHubAPI(oauth2_token=self._token)
self._github = GitHubAPI(oauth2_token=self._token, baseURL=baseURL)

def startService(self):
StatusReceiverMultiService.startService(self)
Expand Down

0 comments on commit 88c1ce3

Please sign in to comment.