()
| 43 | * Check if current directory is a git repository |
| 44 | */ |
| 45 | export function isGitRepo(): boolean { |
| 46 | try { |
| 47 | execSync("git rev-parse --is-inside-work-tree", { |
| 48 | stdio: "ignore", |
| 49 | cwd: process.cwd(), |
| 50 | }); |
| 51 | return true; |
| 52 | } catch { |
| 53 | return false; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Check if running in GitHub Actions |
no outgoing calls
no test coverage detected