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