Closed andyfeller closed 2 months ago
From @williammartin:
With the addition of normalizeHostname to
IsTenancy
andIsEnterprise
it looks like maybe there could be a few more test cases likeapi.tenant.ghe.com
orapi.github.com
orapi.github.localhost
Following on the heels of #151, this commit exports the internal logic used to determine if a host is GHES deployment or a tenant.
Exporting these functions allow extension authors like
github/gh-copilot
to provide tailored experiences consistently withgh
.