Repository navigation
fix(github): stop the gate glyphs rendering as links - #203
Merged
Merged
Conversation
There was a problem hiding this comment.
6 successful checks
More details via MCP → get_ci_run({ runId: "019fb8f8-35fa-7d58-9fa5-8c684cfb569b" }) · view run · docs
3 queries read against main on assumed statistics of 10,000,000 rows per table. Sync production stats for costs measured against your real data.
GitHub wraps every <img> in an anchor to its Camo URL, so each status glyph was a click target that navigated away from the pull request. Wrapping the image in <picture> is the one form its pipeline leaves alone. Co-Authored-By: Claude <noreply@anthropic.com>
veksen
force-pushed
the
fix-gate-icons-not-clickable
branch
from
July 31, 2026 16:17
3af3eb0 to
6b0f06c
Compare
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.
Goal
The status glyph on each gate line was clickable and navigated away from the pull request. Follow-up to #201.
What
Before: clicking a gate's icon opened the raw SVG.
After: the icon is not a link.
How
GitHub's markdown pipeline wraps every
<img>in an anchor to its Camo URL. I probed the four ways out againstPOST /markdown: a bare<img>gets wrapped, an<a>with nohrefgets replaced by GitHub's own anchor, an<a href="#">survives but still jumps the page, and<picture>is left alone entirely.So the fix is one wrapper in
success.md.j2. As a side effect theraw.githubusercontent.comURL is no longer Camo-proxied, since GitHub serves its own domain directly.Tests
github.test.tsasserts the glyph renders inside<picture>. Full suite: 381 passing, 39 files, typecheck clean.