(cwd: string)
| 96 | } |
| 97 | |
| 98 | function detectRepo(cwd: string): string { |
| 99 | try { |
| 100 | const remote = execSync("git config --get remote.origin.url", { |
| 101 | cwd, |
| 102 | stdio: ["ignore", "pipe", "ignore"], |
| 103 | }) |
| 104 | .toString() |
| 105 | .trim() |
| 106 | if (remote) return remote |
| 107 | } catch { |
| 108 | // not a git repo or no remote |
| 109 | } |
| 110 | return path.basename(cwd) |
| 111 | } |
| 112 | |
| 113 | function getGitSummary(cwd: string): string { |
| 114 | try { |
no outgoing calls
no test coverage detected