(content: string, marker: string)
| 282 | } |
| 283 | |
| 284 | export function docsChangelogEntryHasGeneratedTodo(content: string, marker: string) { |
| 285 | const labelIndex = content.indexOf(`label="${marker}"`); |
| 286 | if (labelIndex === -1) { |
| 287 | return false; |
| 288 | } |
| 289 | |
| 290 | const entryStart = content.lastIndexOf("<Update", labelIndex); |
| 291 | const entryEnd = content.indexOf("</Update>", labelIndex); |
| 292 | const entry = content.slice( |
| 293 | entryStart === -1 ? labelIndex : entryStart, |
| 294 | entryEnd === -1 ? undefined : entryEnd + "</Update>".length, |
| 295 | ); |
| 296 | |
| 297 | return hasGeneratedChangelogTodo(entry); |
| 298 | } |
| 299 | |
| 300 | export function releaseAllowedPaths(version: string) { |
| 301 | return [ |
no test coverage detected