fix: merge the missing groups with max annotation gap by ideepu · Pull Request #25 · ideepu/python-coverage-comment · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions codecov/diff_grouper.py
2 changes: 2 additions & 0 deletions codecov/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def process_pr( # pylint: disable=too-many-locals
pr_number: int,
) -> int:
coverage = coverage_module.get_coverage_info(coverage_path=config.COVERAGE_PATH)
if config.BRANCH_COVERAGE:
coverage = diff_grouper.group_branches(coverage=coverage)
base_ref = config.GITHUB_BASE_REF or repo_info.default_branch
pr_diff = github.get_pr_diff(github=gh, repository=config.GITHUB_REPOSITORY, pr_number=pr_number)
added_lines = coverage_module.parse_diff_output(diff=pr_diff)
Expand Down
10 changes: 7 additions & 3 deletions tests/test_diff_grouper.py