From 24de60e972dcf60063f6dcb0f8d0eca25ed6babc Mon Sep 17 00:00:00 2001 From: rt87 <30858878+rt87@users.noreply.github.com> Date: Thu, 22 Oct 2026 20:13:46 +0200 Subject: [PATCH] Name the branch in the coverage badge URL, or it reads "unknown" Measured after the first report landed on main: the shields.io codecov endpoint without a branch segment renders "unknown", while the same URL with /main renders 100%, and so does Codecov's own codecov.io/github//graph/badge.svg. The repository-level API confirms it, returning totals: null while the main branch carries a head commit with coverage. So the badge I merged one commit ago was displaying "unknown" on a public README. Pinning it to main fixes that and also makes it say what it means: the coverage of the default branch, not of whatever Codecov considers current. Claude-Session: https://claude.ai/code/session_017D7FmgZ7gdsg5dKbQWBiN7 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0341704..1e986d2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue?logo=python&logoColor=white)](https://www.python.org/downloads/) [![Alembic 1.17+](https://img.shields.io/badge/alembic-1.17%2B-ca4245)](#alembic-compatibility) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) -[![Coverage](https://img.shields.io/codecov/c/github/rt87/alembic-static-data?logo=codecov&logoColor=white)](https://codecov.io/github/rt87/alembic-static-data) +[![Coverage](https://img.shields.io/codecov/c/github/rt87/alembic-static-data/main?logo=codecov&logoColor=white)](https://codecov.io/github/rt87/alembic-static-data) [![Checked with mypy](https://img.shields.io/badge/mypy-strict-2a6db2)](https://mypy-lang.org/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000)](https://github.com/psf/black) [![License: MIT](https://img.shields.io/badge/license-MIT-750014)](LICENSE)