(basePath: string)
| 41 | } |
| 42 | |
| 43 | async function resolveRepoRoot(basePath: string): Promise<string> { |
| 44 | const result = await runGit(['rev-parse', '--show-toplevel'], basePath); |
| 45 | const root = result.stdout.trim(); |
| 46 | if (!root) { |
| 47 | throw new Error('Unable to resolve Git repository root.'); |
| 48 | } |
| 49 | return root; |
| 50 | } |
| 51 | |
| 52 | function toSlug(value: string): string { |
| 53 | const cleaned = value |
no test coverage detected