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

Function uploadTokenConfig

pkg/cmd/pr/create/create_test.go:2080–2082  ·  view source on GitHub ↗

The token's prefix decides whether the uploader accepts it, so a row varies the prefix.

(token string)

Source from the content-addressed store, hash-verified

2078// The token's prefix decides whether the uploader accepts it, so a row varies
2079// the prefix.
2080func uploadTokenConfig(token string) func() (gh.Config, error) {
2081 return uploadTokenConfigForHosts(map[string]string{"github.com": token})
2082}
2083
2084// A row can give the default host a different token from the host its base
2085// repository resolves to.

Callers 1

Test_createRunFunction · 0.85

Calls 1

Tested by

no test coverage detected