MCPcopy Index your code
hub / github.com/coder/coder / resolveGitProvider

Method resolveGitProvider

coderd/exp_chats.go:4282–4285  ·  view source on GitHub ↗

resolveGitProvider finds the external auth config matching the given remote origin URL and returns its git provider. Returns nil if no matching git provider is configured.

(ctx context.Context, origin string)

Source from the content-addressed store, hash-verified

4280// given remote origin URL and returns its git provider. Returns
4281// nil if no matching git provider is configured.
4282func (api *API) resolveGitProvider(ctx context.Context, origin string) gitprovider.Provider {
4283 _, gp := api.resolveExternalAuth(ctx, origin)
4284 return gp
4285}
4286
4287func (api *API) resolveChatGitAccessToken(
4288 ctx context.Context,

Callers 2

Calls 1

resolveExternalAuthMethod · 0.95

Tested by

no test coverage detected