MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / AppendImplementationNote

Function AppendImplementationNote

internal/models/item.go:451–461  ·  view source on GitHub ↗
(fieldsJSON string, note ItemImplementationNote)

Source from the content-addressed store, hash-verified

449}
450
451func AppendImplementationNote(fieldsJSON string, note ItemImplementationNote) (string, error) {
452 fieldsMap, err := parseMutableItemFields(fieldsJSON)
453 if err != nil {
454 return "", err
455 }
456
457 notes := ExtractItemImplementationNotes(fieldsJSON)
458 notes = append(notes, note)
459 fieldsMap[ItemFieldImplementationNotes] = notes
460 return marshalItemFields(fieldsMap)
461}
462
463func AppendDecisionLogEntry(fieldsJSON string, entry ItemDecisionLogEntry) (string, error) {
464 fieldsMap, err := parseMutableItemFields(fieldsJSON)

Callers 3

dispatchItemNoteMethod · 0.92
noteCmdFunction · 0.92

Calls 3

parseMutableItemFieldsFunction · 0.85
marshalItemFieldsFunction · 0.85