From 88c1ce34d09adabcd1e0ab30fdb66857af63b00e Mon Sep 17 00:00:00 2001 From: Kevin Chang Date: Thu, 25 Sep 2014 13:30:00 -0700 Subject: [PATCH] Allow user to specify baseURL for github api endpoints --- master/buildbot/status/github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/master/buildbot/status/github.py b/master/buildbot/status/github.py index 2b6604fc120..26b0a6ef802 100644 --- a/master/buildbot/status/github.py +++ b/master/buildbot/status/github.py @@ -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. """ @@ -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)