Serialize a frontmatter object + body back into the `---\n…\n---\n\n ` * document shape the reader expects. Body is preserved verbatim (trimmed).
(frontmatter: Record<string, unknown>, body: string)
| 94 | /** Serialize a frontmatter object + body back into the `---\n…\n---\n\n<body>` |
| 95 | * document shape the reader expects. Body is preserved verbatim (trimmed). */ |
| 96 | function serializeIssue(frontmatter: Record<string, unknown>, body: string): string { |
| 97 | const fm = stringifyYaml(frontmatter).trimEnd() |
| 98 | const trimmed = body.trim() |
| 99 | return trimmed ? `---\n${fm}\n---\n\n${trimmed}\n` : `---\n${fm}\n---\n` |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Patch one or more board fields on an existing issue. Reads the file, validates |
no outgoing calls
no test coverage detected