MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / docsChangelogEntryHasGeneratedTodo

Function docsChangelogEntryHasGeneratedTodo

scripts/set-version.ts:284–298  ·  view source on GitHub ↗
(content: string, marker: string)

Source from the content-addressed store, hash-verified

282}
283
284export 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
300export function releaseAllowedPaths(version: string) {
301 return [

Callers 2

artifactHasGeneratedTodoFunction · 0.85

Calls 1

Tested by

no test coverage detected