Skip to content

ci: pin Codecov patch target at 85% - #221

Merged
CodeWithMa merged 1 commit into
CodeWithMa:devfrom
CodeWithMaBot:chore/codecov-config
Nov 27, 2026
Merged

CodeWithMa merged 1 commit into
CodeWithMa:devfrom
CodeWithMaBot:chore/codecov-config

Conversation

@CodeWithMaBot

Copy link
Copy Markdown
Contributor

Why

Codecov's patch target is a moving number nobody chose. The repo has no codecov.yml, so the patch target defaults to dev's coverage at the time a PR is opened. That bar rises with every well-tested merge, and it fails cleanup PRs that rewrite old untested code. #220 failed against a 90.16% target that came out of that default.

What

codecov.yml sets two status checks:

  • Patch: a fixed 85% target. New and changed lines still need tests, and the bar stays put.
  • Project: keeps the auto target with a 0.5% threshold, so a small drop in overall coverage, such as after deleting well-covered code, does not fail a PR.

Verification

🤖 Generated with Claude Code

Without a codecov.yml, the patch target was dev's current coverage. It
rose with every well-tested merge and failed refactors that touched
untested code (PR CodeWithMa#220 hit an unchosen 90.16% bar).

The patch check now has a fixed 85% target. The project check keeps
its auto target with 0.5% slack, so small drops after deleting code
do not fail a PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 27, 2026

Copy link
Copy Markdown

@CodeWithMaBot is attempting to deploy a commit to the Ma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a764d6f6-cba8-4d63-a803-81d41f8f21ca
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
watch-list Ready Ready Preview Nov 27, 2026 12:32pm UTC

@CodeWithMa
CodeWithMa enabled auto-merge (squash) November 27, 2026 12:31
@CodeWithMa
CodeWithMa merged commit 99a699d into CodeWithMa:dev Nov 27, 2026
9 checks passed
@CodeWithMaBot
CodeWithMaBot deleted the chore/codecov-config branch November 27, 2026 13:17

This branch was successfully deployed

1 active deployment
Preview — 37b4b1b2 Deployed Nov 27, 2026 by vercel[bot]
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