MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / parseGitHubRepositoryFullName

Function parseGitHubRepositoryFullName

apps/web/src/lib/bot/platforms/github.ts:30–37  ·  view source on GitHub ↗
(id: string | undefined)

Source from the content-addressed store, hash-verified

28const GITHUB_LINK_PATH = '/github/link';
29const MAX_GITHUB_BODY_LENGTH = 4000;
30const MAX_GITHUB_COMMENT_LENGTH = 1200;
31
32type GitHubRepositoryReference = {
33 id: number | null;
34 fullName: string | null;
35};
36
37function parseGitHubRepositoryFullName(id: string | undefined): string | null {
38 if (!id) return null;
39
40 const match = id.match(/^github:([^/]+\/[^:]+)(?::|$)/);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected