Skip to content

Commit 646327a

Browse files
author
Paulo Ribeiro
authored
Merge pull request #426 from codacy/doc/suggest-rebase-branch
doc: Suggest rebasing branch to fix missing coverage variation
2 parents 81482dc + eb6a1c2 commit 646327a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,11 @@ Because of this, to ensure that all code coverage metrics are available on Codac
214214
!!! note "Example"
215215
The example below shows that after pushing a commit that correctly sets up coverage on the main branch:
216216

217-
- Codacy will report coverage metrics for all subsequent commits and pull requests relative to the main branch
218-
- Codacy won't report coverage metrics for commits and pull requests that are relative to older branches where the coverage setup wasn't performed yet
217+
- Codacy will report coverage metrics for all subsequent commits and pull requests relative to the main branch.
218+
219+
- Codacy won't report coverage metrics for commits and pull requests that are relative to older branches where the coverage setup wasn't performed yet.
220+
221+
To solve this issue, you can rebase the old feature branch to update the common ancestor commit to one that already has coverage data.
219222

220223
![Setting up coverage on the main branch](images/coverage-validate.png)
221224

0 commit comments

Comments
 (0)