MCPcopy
hub / github.com/cli/cli / CategorizeHost

Function CategorizeHost

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

Source from the content-addressed store, hash-verified

98}
99
100func CategorizeHost(host string) string {
101 if host == defaultHostname {
102 return "github.com"
103 }
104
105 if ghauth.IsEnterprise(host) {
106 return "ghes"
107 }
108
109 if ghauth.IsTenancy(host) {
110 return "tenancy"
111 }
112
113 return "uncategorized"
114}

Callers 3

installRunFunction · 0.92
previewRunFunction · 0.92
TestCategorizeHostFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCategorizeHostFunction · 0.68