Commit 9a46978
ci(coverage): drop --depth=1 on the base fetch — fix diff-cover 'no merge base' (#276)
The patch-coverage gate did 'git fetch origin <base> --depth=1', truncating the
base to one commit with no common ancestor with the PR branch whenever the branch
was behind base — so diff-cover crashed with
'fatal: origin/<base>...HEAD: no merge base' and reded coverage on PRs that were
merely stale (hit repeatedly). The checkout is already fetch-depth:0, so a plain
'git fetch origin <base>' resolves the merge-base reliably.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 426e5a9 commit 9a46978
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
0 commit comments