mirror of
https://github.com/actions/checkout.git
synced 2024-12-24 18:13:04 +07:00
Responded to PR feedback.
This commit is contained in:
parent
041723abcc
commit
914445f9e7
@ -51,10 +51,10 @@ export function isGhes(url?: string): boolean {
|
|||||||
|
|
||||||
const hostname = ghUrl.hostname.trimEnd().toUpperCase()
|
const hostname = ghUrl.hostname.trimEnd().toUpperCase()
|
||||||
const isGitHubHost = hostname === 'GITHUB.COM'
|
const isGitHubHost = hostname === 'GITHUB.COM'
|
||||||
const isGheHost = hostname.endsWith('.GHE.COM')
|
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM')
|
||||||
const isLocalHost = hostname.endsWith('.LOCALHOST')
|
const isLocalHost = hostname.endsWith('.LOCALHOST')
|
||||||
|
|
||||||
return !isGitHubHost && !isGheHost && !isLocalHost
|
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost
|
||||||
}
|
}
|
||||||
|
|
||||||
function pruneSuffix(text: string, suffix: string) {
|
function pruneSuffix(text: string, suffix: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user