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

Method ParseRepositoryOrigin

coderd/externalauth/gitprovider/gitprovider.go:155–155  ·  view source on GitHub ↗

ParseRepositoryOrigin parses a remote origin URL (HTTPS or SSH) into owner and repo components, returning the normalized HTTPS URL. Returns false if the URL does not match this provider.

(raw string)

Source from the content-addressed store, hash-verified

153 // normalized HTTPS URL. Returns false if the URL does not
154 // match this provider.
155 ParseRepositoryOrigin(raw string) (owner, repo, normalizedOrigin string, ok bool)
156
157 // ParsePullRequestURL parses a pull request URL into a
158 // PRRef. Returns false if the URL does not match this

Callers 7

ChatDiffStatusFunction · 0.65
refreshOneMethod · 0.65
TestGitLabIntegrationFunction · 0.65
TestGitHubEnterpriseURLsFunction · 0.65
TestGitLabSelfHostedFunction · 0.65

Calls

no outgoing calls

Tested by 4

TestGitLabIntegrationFunction · 0.52
TestGitHubEnterpriseURLsFunction · 0.52
TestGitLabSelfHostedFunction · 0.52