Repository navigation
fix(github): close the schema-drift list before the next gate - #211
Merged
Merged
Conversation
There was a problem hiding this comment.

Query Doctor — 6 successful checks
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
force-pushed
the
fix-schema-drift-list-spacing
branch
from
July 31, 2026 20:52
f85e707 to
e3eb65b
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 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
AddedandRemovedgroup 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
/markdownendpoint 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 --noEmitclean.