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

Function updateSectionStatus

extensions/site-studio/extension.mjs:659–677  ·  view source on GitHub ↗
(sectionId, status, message, author = "agent")

Source from the content-addressed store, hash-verified

657}
658
659function updateSectionStatus(sectionId, status, message, author = "agent") {
660 if (!VALID_STATUS.has(status)) {
661 throw new CanvasError("invalid_status", `Unsupported status: ${status}`);
662 }
663 const section = findSectionOrThrow(sectionId);
664 section.status = status;
665 section.lastModified = nowIso();
666 stateCache.lastUpdated = section.lastModified;
667 addChange({
668 type: "status_change",
669 summary: `${section.name} moved to ${status}`,
670 timestamp: section.lastModified,
671 sectionId,
672 });
673 if (message) {
674 addNote(sectionId, message, author);
675 }
676 return section;
677}
678
679function appendFileChange(sectionId, filePath) {
680 if (!filePath) {

Callers 2

handleApiFunction · 0.85
extension.mjsFile · 0.85

Calls 4

findSectionOrThrowFunction · 0.85
nowIsoFunction · 0.85
addChangeFunction · 0.85
addNoteFunction · 0.85

Tested by

no test coverage detected