mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Specify a server url for Github.
Allows connection to GitHub Enterprise installs on local URLs.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user