MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / parseGitHubOwnerAndName

Function parseGitHubOwnerAndName

scripts/generate-version.ts:14–20  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

12}
13
14function parseGitHubOwnerAndName(url: string): { owner: string; name: string } {
15 const match = url.match(/github\.com[/:]([^/]+)\/([^/.]+)/);
16 if (!match) {
17 throw new Error(`Cannot parse GitHub owner/name from repository URL: ${url}`);
18 }
19 return { owner: match[1], name: match[2] };
20}
21
22const VERSION_REGEX = /^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.\-]+)?(\+[a-zA-Z0-9.\-]+)?$/;
23

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected