(artifact: string)
| 268 | } |
| 269 | |
| 270 | function artifactHasGeneratedTodo(artifact: string) { |
| 271 | const [path, marker] = artifact.split("#"); |
| 272 | const content = readFileSync(join(ROOT, path), "utf-8"); |
| 273 | if (!marker) { |
| 274 | return hasGeneratedChangelogTodo(content); |
| 275 | } |
| 276 | |
| 277 | return docsChangelogEntryHasGeneratedTodo(content, marker); |
| 278 | } |
| 279 | |
| 280 | export function hasGeneratedChangelogTodo(content: string) { |
| 281 | return content.includes(CHANGELOG_REVIEW_TODO); |
no test coverage detected