Repository navigation
feat(git-graph): draw git-graph fences, titled by their [label] - #422
Conversation
A ```git-graph fence holding pasted `git log` output now renders the same figure as `::git-graph`, and degrades to a code block of the log where the plugin doesn't run. Comark keeps only a fence's `[label]`, so the fence takes a title and nothing else; `reverse`, `max-count`, and the slots still need `::git-graph`. A fence with no commits stays code and reports missing-log. The docs lead with the fence, drop the `$ git log` line, and move the backport (cherry-pick status) example below the basics.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session Pushed c9613d6 resolving both merge conflicts while preserving fence rendering, diff inputs, raw HTML, and main’s bundle reference. Dependencies refreshed; lint passed with warnings. Focused tests require workspace builds, which the sandbox’s pnpm database error blocked. The base changed during CI comparison, so the Doctor failure remains unverified. Awaiting hosted checks; no unresolved review findings remain. Session CI reconciliation completed; the same-head repair budget is exhausted. HEAD matches 8753ee8, but the host rejected base CI evidence because the base changed. The prepared merge targets 2086381 while repair state still assigns f69708d, with conflicts in packages/git-graph/src/index.ts and skills/comark-ui/SKILL.md. No edits or push made. Refresh the host’s assigned base and prepared merge, then retry conflict repair and validation. |
There was a problem hiding this comment.
Important
The new fence conversion can silently erase a ::diff comparison. Two matching edge cases are detailed inline.
Reviewed changes — Reviewed the complete PR, including fence conversion, preservation of the directive API, preset interactions, tests, and documentation.
- Fence syntax: Adds
git-graphfences with[label]titles through a shared figure builder; invalid logs remain code and report an issue. - Directive compatibility: Retains
::git-graphprops and slots while separating directive and fence issue numbering. - Documentation and coverage: Updates examples, Doctor pages, README, and agent references; adds equivalence, nesting, and fallback tests.
Validation passed: workspace build and typecheck, 833 tests across the focused suites, and all ten package-page examples rendered through comark-ui/html without issues.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
✅ No new issues found; no P0 or P1 findings remain.
Reviewed changes — Reviewed 8753ee8, the fix commit since the previous review at 72411fd.
- Preserved diff inputs. Left direct
git-graphsource fences inside::diffintact while continuing to render ordinary fences in nested content. - Preserved raw HTML. Excluded raw HTML
preelements from fence conversion, retaining their attributes and fragment targets. - Added regression coverage. Verified raw HTML preservation and the default HTML preset’s comparison counts and rows.
Validation passed: workspace build, TypeScript checks, and 778 tests across nine suites. Additional parse-and-render checks covered mixed and nested fences, both plugin orders, and diagnostic numbering.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

Writing a git graph today takes a
::git-graphdirective around a fence, usually with a$ git log …line on top. With this PR the fence alone is enough:It renders the same figure as
::git-graph{title="A normal week"}. On GitHub, or anywhere else the plugin doesn't run, the fence still shows the log. The directive shows nothing useful there. The$ git logline was already optional, becauseread.tsreads everything before the first$ gitas log output.The fence takes a title and nothing else. Comark drops a fence's
{…}attributes and keeps only the[label], asfilename. Soreverse,max-count,#titleand#footerstill need::git-graph, which works as before, and the docs say so under "Props and slots". I didn't patch Comark for it. A fence with no commits stays a code block and reportsmissing-log.The git-graph page now leads with the fence, and no example on it has a
$ git logline, so the playground loses it too. The backport example, the one with cherry-pick status, moved down to Examples. The top three are now History, Release branches and Stack. The cherry-pick code is unchanged. Themissing-logandmissing-parentsdoctor pages use the fence.unknown-branchandunknown-commitkeep their transcripts, since their$ git log … mainline is what shows the mistake. The skill reference, README and AGENTS.md follow.Three new tests check that a fence renders byte for byte what
::git-graphrenders, with and without a[label], for all three fixtures, plus a fence inside a list and an empty fence. They fail onmainand pass here. git-graph's tests,test/doctor.test.ts,test/workspace.test.tsandpnpm typecheckpass, and all ten examples on the page render throughcomark-ui/htmlwith no issues. I didn't runpnpm docs:buildor the e2e tests.Two gaps I left:
place()only finds blocks it can count, like "::git-graph2" or "Code block 3", and a code block count drifts once diagrams or Mermaid turn earlier fences into drawings.pnpm run doctorinpackages/git-graphfails on 5 performance warnings. The same 5 fail onmain.Open before the release, not this PR's job:
comark-git-graphhas no npm trusted publisher yet. Without one its publish in v0.12.1 (v0.12.1 #417) fails and stops the later waves.