MCPcopy Index your code
hub / github.com/github/awesome-copilot / markMilestone

Function markMilestone

extensions/site-studio/extension.mjs:692–707  ·  view source on GitHub ↗
(title, description, sectionsAffected)

Source from the content-addressed store, hash-verified

690}
691
692function markMilestone(title, description, sectionsAffected) {
693 const milestone = {
694 id: uid("milestone"),
695 title: safeString(title),
696 description: safeString(description),
697 sectionsAffected: Array.isArray(sectionsAffected) ? sectionsAffected.filter((value) => typeof value === "string") : [],
698 timestamp: nowIso(),
699 };
700 stateCache.milestones.unshift(milestone);
701 addChange({
702 type: "milestone",
703 summary: `${milestone.title}: ${milestone.description}`,
704 timestamp: milestone.timestamp,
705 });
706 return milestone;
707}
708
709const UNSAFE_FIELD_NAMES = new Set(["__proto__", "prototype", "constructor"]);
710function isUnsafeFieldName(name) {

Callers 1

extension.mjsFile · 0.85

Calls 4

uidFunction · 0.85
safeStringFunction · 0.85
nowIsoFunction · 0.85
addChangeFunction · 0.85

Tested by

no test coverage detected