(slug: string, annotationsContent: string, customPath?: string | null)
| 71 | * Returns the full path to the saved file. |
| 72 | */ |
| 73 | export function saveAnnotations(slug: string, annotationsContent: string, customPath?: string | null): string { |
| 74 | const planDir = getPlanDir(customPath); |
| 75 | const filePath = join(planDir, `${slug}.annotations.md`); |
| 76 | writeFileSync(filePath, annotationsContent, "utf-8"); |
| 77 | return filePath; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Save the final snapshot on approve/deny. |
no test coverage detected