forked from mirrors/probot
httpSSSSSSS (#701)
This commit is contained in:
parent
1da70093b2
commit
3be935bcd2
|
@ -79,6 +79,6 @@ export class ManifestCreation {
|
|||
|
||||
get createAppUrl () {
|
||||
const githubHost = process.env.GHE_HOST || `github.com`
|
||||
return `http://${githubHost}/settings/apps/new`
|
||||
return `https://${githubHost}/settings/apps/new`
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
{
|
||||
"id": "6666",
|
||||
"webhook_secret": "12345abcde",
|
||||
"pem": "-----BEGIN RSA PRIVATE KEY-----\nsecrets\n-----END RSA PRIVATE KEY-----\n",
|
||||
"html_url": "https://github.com/apps/testerino0000000"
|
||||
}
|
||||
{
|
||||
"id": "6666",
|
||||
"webhook_secret": "12345abcde",
|
||||
"pem": "-----BEGIN RSA PRIVATE KEY-----\nsecrets\n-----END RSA PRIVATE KEY-----\n",
|
||||
"html_url": "https://github.com/apps/testerino0000000"
|
||||
}
|
||||
|
|
|
@ -45,12 +45,12 @@ describe('ManifestCreation', () => {
|
|||
})
|
||||
|
||||
test('creates an app url', () => {
|
||||
expect(setup.createAppUrl).toEqual('http://github.com/settings/apps/new')
|
||||
expect(setup.createAppUrl).toEqual('https://github.com/settings/apps/new')
|
||||
})
|
||||
|
||||
test('creates an app url when github host env is set', () => {
|
||||
process.env.GHE_HOST = 'hiimbex.github.com'
|
||||
expect(setup.createAppUrl).toEqual('http://hiimbex.github.com/settings/apps/new')
|
||||
expect(setup.createAppUrl).toEqual('https://hiimbex.github.com/settings/apps/new')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue