(cwd, baseRef)
| 66 | } |
| 67 | |
| 68 | function buildBranchComparison(cwd, baseRef) { |
| 69 | const mergeBase = gitChecked(cwd, ["merge-base", "HEAD", baseRef]).stdout.trim(); |
| 70 | return { |
| 71 | mergeBase, |
| 72 | commitRange: `${mergeBase}..HEAD`, |
| 73 | reviewRange: `${baseRef}...HEAD` |
| 74 | }; |
| 75 | } |
| 76 | |
| 77 | export function ensureGitRepository(cwd) { |
| 78 | const result = git(cwd, ["rev-parse", "--show-toplevel"]); |
no test coverage detected