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

Function SupportedHost

pkg/cmd/event/client/client.go:256–258  ·  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

254// SupportedHost reports whether event subscriptions are available on host. They are only available on github.com,
255// not on GitHub Enterprise Server or GHE.com.
256func SupportedHost(host string) bool {
257 return !ghauth.IsEnterprise(host) && !ghauth.IsTenancy(host)
258}

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