feat(service,features): carry a pull request comment's markdown beside GitHub's rendering

Merged
DA
4d ago
+29-10

What

A PR conversation entry, or a review thread's comment, that GitHub rendered carries html plus an empty body (wordsOf in packages/service/src/github/pull-requests.ts). So a client that draws Markdown alone has nothing to draw, and the iOS app's coming Conversation (STAG-3903) is such a client.

  • Wire: conversationEntrySchema and reviewThreadCommentSchema take an optional markdown key. Beside a rendering, it holds the Markdown GitHub rendered from. It's absent where body already holds the words, where nothing was written, and from an older service.
  • Service: wordsOf keeps the written Markdown as markdown whenever GitHub also sent a rendering. github-people.ts already spreads the entry's words into the answer, so the key reaches the conversation answer with no other change.
  • Member MCP: its conversation page cuts an entry's and a thread comment's words from markdown ?? body. It never forwards both, and it no longer cuts from the empty body of a rendered entry.
  • Compatibility: the key is additive. Released desktop, CLI and iOS builds read past it, and the desktop keeps drawing html. No version bump is needed.

Checks

  • vitest run packages/service/src/github/pull-request-overview.test.ts passes. Its two conversation expectations now include the markdown their rendered entries and thread comments carry.
  • turbo run typecheck --filter=@repo/service --filter=@repo/features passes, and biome is clean.

šŸ¤– Generated with Claude Code