MCPcopy
hub / github.com/opentrace/opentrace / parseBitbucketUrl

Function parseBitbucketUrl

ui/src/runner/browser/loader/bitbucket.ts:38–44  ·  view source on GitHub ↗
(
  url: string,
)

Source from the content-addressed store, hash-verified

36
37/** Parse "workspace/repo" from a Bitbucket Cloud URL. */
38export function parseBitbucketUrl(
39 url: string,
40): { workspace: string; repo: string } | null {
41 const match = url.match(/bitbucket\.org[/:]([^/]+)\/([^/.]+)/);
42 if (!match) return null;
43 return { workspace: match[1], repo: match[2] };
44}
45
46/** Fetch a full repo tree from Bitbucket Cloud. */
47export async function fetchBitbucketRepoTree(

Callers 3

parseRepoUrlFunction · 0.90
canHandleFunction · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected