Repository navigation
Conversation
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/<repo>/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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #17, measured once the first report had landed on
main:img.shields.io/codecov/c/github/rt87/alembic-static-data(merged in #17)unknownimg.shields.io/codecov/c/github/rt87/alembic-static-data/maincodecov.io/github/rt87/alembic-static-data/graph/badge.svgCodecov's API explains it: the repository-level endpoint returns
totals: null, whilebranches/main/carries a head commit with coverage. Without a branch segment shields has nothing to read.So the badge merged one commit ago was showing
unknownon a public README. Pinning it tomainfixesthat, and makes the badge say what it means — the coverage of the default branch.
For the record, the rest of #17 worked without any manual step: the OIDC upload created the repository on
Codecov by itself (
activated: true), andmainis at 100%.🤖 Generated with Claude Code
https://claude.ai/code/session_017D7FmgZ7gdsg5dKbQWBiN7