MCPcopy
hub / github.com/github/awesome-copilot / addChange

Function addChange

extensions/site-studio/extension.mjs:631–644  ·  view source on GitHub ↗
(change)

Source from the content-addressed store, hash-verified

629}
630
631function addChange(change) {
632 const timestamp = safeString(change.timestamp, nowIso());
633 const entry = {
634 id: uid("change"),
635 type: change.type,
636 path: typeof change.path === "string" ? change.path : undefined,
637 summary: safeString(change.summary, ""),
638 timestamp,
639 sectionId: typeof change.sectionId === "string" ? change.sectionId : undefined,
640 };
641 stateCache.changeLog.unshift(entry);
642 stateCache.lastUpdated = timestamp;
643 return entry;
644}
645
646function addNote(sectionId, text, author) {
647 const section = findSectionOrThrow(sectionId);

Callers 7

applyTemplatePackFunction · 0.85
updateSectionStatusFunction · 0.85
markMilestoneFunction · 0.85
upsertSectionContentFunction · 0.85
deleteSectionContentFunction · 0.85
handleApiFunction · 0.85
extension.mjsFile · 0.85

Calls 3

safeStringFunction · 0.85
nowIsoFunction · 0.85
uidFunction · 0.85

Tested by

no test coverage detected