fix: Enterprise Github instance endpoint
This commit is contained in:
parent
d3da679aae
commit
a205a7d514
1 changed files with 5 additions and 1 deletions
|
|
@ -36,10 +36,14 @@
|
||||||
|
|
||||||
async function installRepositories(source: any) {
|
async function installRepositories(source: any) {
|
||||||
const { htmlUrl } = source;
|
const { htmlUrl } = source;
|
||||||
|
let endpoint = 'apps'
|
||||||
|
if (htmlUrl !== 'https://github.com') {
|
||||||
|
endpoint = 'github-apps'
|
||||||
|
}
|
||||||
const left = screen.width / 2 - 1020 / 2;
|
const left = screen.width / 2 - 1020 / 2;
|
||||||
const top = screen.height / 2 - 1000 / 2;
|
const top = screen.height / 2 - 1000 / 2;
|
||||||
const newWindow = open(
|
const newWindow = open(
|
||||||
`${htmlUrl}/apps/${source.githubApp.name}/installations/new`,
|
`${htmlUrl}/${endpoint}/${source.githubApp.name}/installations/new`,
|
||||||
'GitHub',
|
'GitHub',
|
||||||
'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' +
|
'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' +
|
||||||
top +
|
top +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue