Skip to content

ci(coverage): drop --depth=1 base fetch (fix diff-cover 'no merge base')#206

Merged
mastermanas805 merged 1 commit into
mainfrom
ci/coverage-no-merge-base-fix
Jun 7, 2026
Merged

ci(coverage): drop --depth=1 base fetch (fix diff-cover 'no merge base')#206
mastermanas805 merged 1 commit into
mainfrom
ci/coverage-no-merge-base-fix

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

The patch-coverage gate fetched the base with --depth=1, leaving no merge-base with a PR branch that's behind base → diff-cover crashed with fatal: origin/<base>...HEAD: no merge base and reded coverage on merely-stale PRs (hit repeatedly this week). Checkout is already fetch-depth: 0, so a plain git fetch origin <base> resolves the merge-base. One-line fix + rationale comment.

🤖 Generated with Claude Code

…erge base'

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 Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 7, 2026

size-limit report 📦

Path Size
dist/assets/index-CgN1XV4b.js 161.99 KB (0%)
dist/assets/index-BsJUZYRr.css 6.13 KB (0%)

@mastermanas805 mastermanas805 merged commit 9aee76b into main Jun 7, 2026
18 checks passed
@mastermanas805 mastermanas805 deleted the ci/coverage-no-merge-base-fix branch June 7, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants