fix: Enterprise Github instance endpoint

This commit is contained in:
Andras Bacsai 2022-08-11 08:28:09 +00:00
parent d3da679aae
commit a205a7d514

View File

@ -36,10 +36,14 @@
async function installRepositories(source: any) {
const { htmlUrl } = source;
let endpoint = 'apps'
if (htmlUrl !== 'https://github.com') {
endpoint = 'github-apps'
}
const left = screen.width / 2 - 1020 / 2;
const top = screen.height / 2 - 1000 / 2;
const newWindow = open(
`${htmlUrl}/apps/${source.githubApp.name}/installations/new`,
`${htmlUrl}/${endpoint}/${source.githubApp.name}/installations/new`,
'GitHub',
'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' +
top +