MCPcopy Create free account
hub / github.com/cli/cli / CategorizeHost

Function CategorizeHost

internal/ghinstance/host.go:109–123  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

107}
108
109func CategorizeHost(host string) string {
110 if host == defaultHostname {
111 return "github.com"
112 }
113
114 if ghauth.IsEnterprise(host) {
115 return "ghes"
116 }
117
118 if ghauth.IsTenancy(host) {
119 return "tenancy"
120 }
121
122 return "uncategorized"
123}

Callers 3

installRunFunction · 0.92
previewRunFunction · 0.92
TestCategorizeHostFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCategorizeHostFunction · 0.68