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

Method updateIssueComment

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

* Update a GitHub issue comment

(commentId: string | number, note: Note)

Source from the content-addressed store, hash-verified

1777 * Update a GitHub issue comment
1778 */
1779 async updateIssueComment(commentId: string | number, note: Note): Promise<void> {
1780 try {
1781 await this.request(`${this.repoURL}/issues/comments/${commentId}`, {
1782 method: 'PATCH',
1783 body: JSON.stringify({
1784 body: formatNoteBody(note),
1785 }),
1786 });
1787 } catch (error) {
1788 console.error('Failed to update issue comment:', error);
1789 throw new APIError('Failed to update note', error.status || 500, API_NAME);
1790 }
1791 }
1792
1793 /**
1794 * Delete a GitHub issue comment

Callers 1

updateEntryNoteMethod · 0.95

Calls 2

requestMethod · 0.95
formatNoteBodyFunction · 0.90

Tested by

no test coverage detected