| 39 | }; |
| 40 | |
| 41 | export class GitHubParseError extends Error { |
| 42 | constructor( |
| 43 | message: string, |
| 44 | public readonly code: "invalid_url" | "repo_unreadable" | "no_components", |
| 45 | ) { |
| 46 | super(message); |
| 47 | this.name = "GitHubParseError"; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | function parseFrontmatter(input: string): { |
| 52 | data: Record<string, unknown>; |
nothing calls this directly
no outgoing calls
no test coverage detected