Skip to content

fix(github): close the schema-drift list before the next gate - #211

Merged
veksen merged 1 commit into
mainfrom
fix-schema-drift-list-spacing
Jul 31, 2026
Merged

veksen merged 1 commit into
mainfrom
fix-schema-drift-list-spacing

Conversation

@veksen

@veksen veksen commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Goal

The PR comment leads with the gate roster, one line per condition, and a condition that fired expands beneath its own line (ADR-0009). On a run where the schema changed, that expansion broke the roster below it. This is the last rendering defect I know of in the gates-first comment.

What

Before: on a run with schema drift, every gate row after Schema drift rendered as a bullet inside the schema list, indented under the last added constraint. The Added and Removed group headings also sat flush against the line above them, with a gap only below.

After: the list closes, the gates below it read as their own block, and the group headings have space on both sides.

How

Both defects are one missing blank line each in success.md.j2, and both are markdown rules rather than layout choices. A line straight after a list item is lazy continuation, so markdown folds it into that <li>. A line straight after a paragraph is a soft break, so the heading joined the gate row it followed instead of opening its own paragraph.

I confirmed the fix through GitHub's own /markdown endpoint rather than by eye: the <ul> now closes and the remaining gates come back as a sibling <p>.

Tests

One test in github.test.ts, asserting on the rendered markdown: the line after the last schema entry is blank, and so is the line above the group heading. It fails on the old template with the gate row's <picture> tag as the actual value, which is the defect itself. Full suite 405 passing, tsc --noEmit 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.

Query Doctor — 6 successful checks

 Cost regression — No query went up more than 5%
 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: "019fb9f4-2432-77f8-88e0-1d4ba8779c6c" }) · 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.

A line straight after a list item is lazy continuation, so every gate row
below the schema-drift expansion rendered inside its last <li>. A line
straight after the gate row is a soft break, so the group heading lost the
space above it. Both are fixed by blank lines the template never emitted.

Co-Authored-By: Claude <noreply@anthropic.com>
@veksen
veksen force-pushed the fix-schema-drift-list-spacing branch from f85e707 to e3eb65b Compare July 31, 2026 20:52
@veksen
veksen changed the base branch from fix-brand-heading-alignment to main July 31, 2026 20:52
@veksen
veksen merged commit 2863856 into main Jul 31, 2026
10 checks passed
@veksen
veksen deleted the fix-schema-drift-list-spacing branch July 31, 2026 20:57
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