Specify a server url for Github.

Allows connection to GitHub Enterprise installs on local URLs.
This commit is contained in:
Steve English
2012-07-23 17:39:56 +01:00
parent dc2af211bc
commit 7456c1e49b
8 changed files with 81 additions and 58 deletions
+2 -2
View File
@@ -903,7 +903,7 @@ class Repository( GithubObject.GithubObject ):
def get_network_events( self ):
headers, data = self._requester.requestAndCheck(
"GET",
"https://api.github.com/networks/" + self.owner.login + "/" + self.name + "/events",
"/networks/" + self.owner.login + "/" + self.name + "/events",
None,
None
)
@@ -1008,7 +1008,7 @@ class Repository( GithubObject.GithubObject ):
assert isinstance( keyword, ( str, unicode ) ), keyword
headers, data = self._requester.requestAndCheck(
"GET",
"https://api.github.com/legacy/issues/search/" + self.owner.login + "/" + self.name + "/" + state + "/" + urllib.quote( keyword ),
"/legacy/issues/search/" + self.owner.login + "/" + self.name + "/" + state + "/" + urllib.quote( keyword ),
{},
None
)