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:
Steve Kowalik
2019-09-25 23:01:31 +10:00
committed by GitHub
parent 89c967bb77
commit e33858a3dc
2 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -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()