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

Function SupportedHost

pkg/cmd/event/client/client.go:280–282  ·  view source on GitHub ↗

SupportedHost reports whether event subscriptions are available on host. They are only available on github.com, not on GitHub Enterprise Server or GHE.com.

(host string)

Source from the content-addressed store, hash-verified

278// SupportedHost reports whether event subscriptions are available on host. They are only available on github.com,
279// not on GitHub Enterprise Server or GHE.com.
280func SupportedHost(host string) bool {
281 return !ghauth.IsEnterprise(host) && !ghauth.IsTenancy(host)
282}

Callers 6

printListenHintFunction · 0.92
CreateSubscriptionMethod · 0.85
GetSubscriptionMethod · 0.85
ListSubscriptionsMethod · 0.85
DeleteSubscriptionMethod · 0.85
OpenStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected