Repository navigation
Repo checker: a "check wheels" badge a project can put in its README - #200
Merged
Merged
Conversation
The checker's URL already works as a permanent link for any public repo, but nothing got a project to put it where its users look. The Fix it section now offers a static badge (site/check/badge.svg, on the page's own origin) with its Markdown and a Copy button. The link carries only the repo, plus the lockfile when it isn't the one the page picks by itself, so a click always checks the default branch on its CI's targets that day. The badge is a fixed image and the page says it shows no result. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
Closes #188
A static "wheelgap | check wheels" badge that a project can put in its README, linking to the repo checker for that repo.
What changed
site/check/badge.svg: a hand-written flat badge, 1.1 KB, no script, no external font or image. It is a fixed image and shows no result.badgeMarkdown(repo, lockfile, defaultLock)incheck-logic.mjs. The link carries onlyrepo=, neverpy,torref, so a click checks the default branch on its CI's targets that day.&lock=pathis added only when the file shown isn't the onepickLockfile()picks for the repo alone. The query is built withURLSearchParams, astoQuery()builds it, so a path can't end the Markdown link early.site/check/index.html: "Add a badge to your README" in the "Fix it" section, with the image, the Markdown in a<pre>and a "Copy badge Markdown" button. The note beside the image says it shows no result. It sits under the two Copy buttons and their note (and the gap wheels block, when shown), above "Run the same check locally".check.mjsfills the snippet withtextContentand copies it withcopy(), like the other buttons.How it was tested
tests/site/check-logic.test.mjscoversbadgeMarkdown(): repo only, a non-default lockfile, and a path with spaces, brackets, quotes,&,#and%, whichfromQuery()reads back unchanged.tests/site/check-page.test.mjschecks the SVG (size, no script or external reference, its text) and the page's markup and wiring.check.ymlcommand list passes locally.site/locally and checked fastapi/full-stack-fastapi-template in a browser:img-src 'self'policy.repo=only on the defaultuv.lock, and gains&lock=backend/pyproject.tomlafter picking that file.Not done
🤖 Generated with Claude Code