Skip to content

docs: Drop the branch from the coverage badge - #750

Merged
krlmlr merged 1 commit into
claude/pkgdown-harmonizationfrom
claude/badge-harmonization
Sep 13, 2026
Merged

krlmlr merged 1 commit into
claude/pkgdown-harmonizationfrom
claude/badge-harmonization

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Two URLs make up the coverage badge and they had drifted apart: the image is served from the bare codecov.io host, the link opens the UI on app.codecov.io. Both are brought to their current form.

The branch is dropped from the image URL rather than pinned to main. A branch-pinned badge keeps reporting the branch it names, so it goes stale silently the next time a branch is renamed — which is how several badges in this fleet came to report a branch that no longer exists. Without the pin, codecov reports the default branch and the badge follows a rename on its own.

The link moves to /tree/main, the address the ?branch= query redirects to.

image  codecov.io/gh/r-dbi/DBI/graph/badge.svg
link   app.codecov.io/gh/r-dbi/DBI/tree/main

The owner and repository are carried over from the URL being rewritten, so this cannot retarget a badge at a different project. The badge block is pass-through markdown, so README.md and index.md carry the identical edit rather than a re-render; that equivalence was checked against a real render before the change was applied across the fleet.

This is part of a fleet-wide badge harmonization. Stacked on #749, which this PR targets, so the diff is the badge change alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

@krlmlr
krlmlr changed the base branch from main to claude/pkgdown-harmonization September 13, 2026 09:38
@krlmlr
krlmlr force-pushed the claude/badge-harmonization branch from 3403894 to 7c04d75 Compare September 13, 2026 13:18
@krlmlr
krlmlr added this pull request to stack #753 September 13, 2026 14:07
@krlmlr
krlmlr force-pushed the claude/badge-harmonization branch from 7c04d75 to 211a911 Compare September 13, 2026 16:55
Two URLs make up the badge and they had drifted apart: the image is
served from the bare `codecov.io` host, the link opens the UI on
`app.codecov.io`. Both are brought to their current form.

The branch is dropped from the image URL rather than pinned to `main`. A
branch-pinned badge keeps reporting the branch it names, so it goes
stale silently the next time a branch is renamed -- which is how several
badges in this fleet came to report a branch that no longer exists.
Without one, codecov reports the default branch and the badge follows a
rename on its own.

The link moves to `/tree/main`, the address the `?branch=` query
redirects to.

    image  codecov.io/gh/<owner>/<repo>/graph/badge.svg
    link   app.codecov.io/gh/<owner>/<repo>/tree/main

The owner and repository are carried over from the URL being rewritten,
so this cannot retarget a badge at a different project.

The badge block is pass-through markdown, so `README.md` and `index.md`
carry the identical edit rather than a re-render.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/badge-harmonization branch from 211a911 to 51c24d3 Compare September 13, 2026 20:30
@krlmlr
krlmlr merged commit 9918240 into main Sep 13, 2026
6 checks passed
@krlmlr
krlmlr deleted the claude/badge-harmonization branch September 13, 2026 20:40
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks
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