Skip to content

Commit 2798533

Browse files
Abel Milashclaude
andcommitted
Fix diff-cover no-merge-base error by fetching full git history
GitHub Actions shallow clone (fetch-depth: 1) prevented diff-cover from finding the common ancestor between HEAD and origin/main. Setting fetch-depth: 0 fetches the full history so diff-cover can compute the merge base correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bafdfbb commit 2798533

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
2123

2224
- name: Set up Python 3.12
2325
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)