Skip to content

codecov: post PR comment only when coverage is at stake - #702

Open
xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:codecov-require-changes
Open

xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:codecov-require-changes

Conversation

@xdelaruelle

Copy link
Copy Markdown
Collaborator

Codecov currently posts a comment on every pull request, even when the change is fully covered and project coverage does not move (see #701 for instance). Such comments carry no actionable information and only add noise to the review.

Set require_changes: "coverage_drop OR uncovered_patch" in codecov.yml so the comment is posted only if project coverage drops or the patch contains uncovered lines. The commit status check is unaffected and keeps reporting the coverage result on every PR.

Codecov posts a comment on every pull request, even when the change is
fully covered and project coverage does not move. Such comments carry no
actionable information and only add noise to the review.

Set 'require_changes' so the comment is posted only if project coverage
drops or the patch contains uncovered lines. The commit status check is
unaffected and keeps reporting the coverage result on every PR.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
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.

1 participant