mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Support non-default URLs in GithubIntegration (#1229)
The get_installation() method of GithubIntegration was hardcoded to always use the default URL of api.github.com, making it impossible to fetch the installation of an GitHub Enterprise installation.
This commit is contained in:
+1
-1
@@ -790,7 +790,7 @@ class GithubIntegration(object):
|
||||
}
|
||||
|
||||
response = requests.get(
|
||||
"{}/repos/{}/{}/installation".format(DEFAULT_BASE_URL, owner, repo),
|
||||
"{}/repos/{}/{}/installation".format(self.base_url, owner, repo),
|
||||
headers=headers
|
||||
)
|
||||
response_dict = response.json()
|
||||
|
||||
Reference in New Issue
Block a user