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

Method formatNoteForGithub

packages/decap-cms-backend-github/src/API.ts:1569–1574  ·  view source on GitHub ↗

* Format a note for PR comment display

(note: Note)

Source from the content-addressed store, hash-verified

1567 * Format a note for PR comment display
1568 */
1569 private formatNoteForGithub(note: Note): string {
1570 const status = note.resolved ? API.NOTE_STATUS_RESOLVED : API.NOTE_STATUS_OPEN;
1571
1572 return `<!-- DecapCMS Note - Status: ${status} -->
1573${note.content}`;
1574 }
1575
1576 /**
1577 * Parse a GitHub comment into a Note object

Callers 2

createIssueCommentMethod · 0.95
updateIssueCommentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected