MCPcopy Create free account
hub / github.com/cli/gh-webhook / authTokenForHost

Function authTokenForHost

webhook/create_webhook.go:96–102  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

94}
95
96func authTokenForHost(host string) (string, error) {
97 token, _ := auth.TokenForHost(host)
98 if token == "" {
99 return "", fmt.Errorf("gh auth token not found for host %q", host)
100 }
101 return token, nil
102}

Callers 1

NewCmdForwardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected