Skip to content

fix(github): stop the gate glyphs rendering as links - #203

Merged
veksen merged 1 commit into
mainfrom
fix-gate-icons-not-clickable
Jul 31, 2026
Merged

veksen merged 1 commit into
mainfrom
fix-gate-icons-not-clickable

Conversation

@veksen

@veksen veksen commented Jul 31, 2026

Copy link
Copy Markdown
Member

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 against POST /markdown: a bare <img> gets wrapped, an <a> with no href gets 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 the raw.githubusercontent.com URL is no longer Camo-proxied, since GitHub serves its own domain directly.

Tests

github.test.ts asserts the glyph renders inside <picture>. Full suite: 381 passing, 39 files, typecheck clean.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 successful checks

 Cost regression — No query got more expensive than the threshold allows
 Untested data access — No changed data-access file without a test
 New query — No new queries
 New query with index recommendation — No new query ships an index recommendation
 Schema drift — No schema changes
 High-value nudge — No index or rewrite past the threshold


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
veksen force-pushed the fix-gate-icons-not-clickable branch from 3af3eb0 to 6b0f06c Compare July 31, 2026 16:17
@veksen
veksen merged commit d6cb8f2 into main Jul 31, 2026
6 checks passed
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