MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getNotes

Method getNotes

packages/decap-cms-backend-gitlab/src/implementation.ts:625–637  ·  view source on GitHub ↗
(collection: string, slug: string)

Source from the content-addressed store, hash-verified

623 }
624
625 async getNotes(collection: string, slug: string): Promise<Note[]> {
626 const notes = (await this.notesApi!.getEntryNotes(collection, slug)).map(note => ({
627 ...note,
628 entrySlug: slug,
629 }));
630
631 try {
632 return await this.markOwnNotes(notes);
633 } catch (error) {
634 console.warn('Failed to resolve note ownership:', error);
635 return notes;
636 }
637 }
638
639 async addNote(
640 collection: string,

Callers

nothing calls this directly

Calls 3

markOwnNotesMethod · 0.95
mapMethod · 0.80
getEntryNotesMethod · 0.45

Tested by

no test coverage detected