MCPcopy Index your code
hub / github.com/simstudioai/sim / composeBody

Function composeBody

apps/sim/connectors/gitlab/gitlab.ts:389–395  ·  view source on GitHub ↗

* Composes the document body as "Title\n\n ".

(title: string, content: string)

Source from the content-addressed store, hash-verified

387 * Composes the document body as "Title\n\n<content>".
388 */
389function composeBody(title: string, content: string): string {
390 const trimmedTitle = title.trim()
391 const trimmedContent = content.trim()
392 if (!trimmedTitle) return trimmedContent
393 if (!trimmedContent) return trimmedTitle
394 return `${trimmedTitle}\n\n${trimmedContent}`
395}
396
397/**
398 * Builds a wiki page document (full content) from a fetched page.

Callers 3

fileToDocumentFunction · 0.85
wikiPageToDocumentFunction · 0.85
issueToDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected