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

Method updateIssueComment

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

* Update a GitHub issue comment

(commentId: string | number, note: Note)

Source from the content-addressed store, hash-verified

1769 * Update a GitHub issue comment
1770 */
1771 async updateIssueComment(commentId: string | number, note: Note): Promise<void> {
1772 try {
1773 await this.request(`${this.repoURL}/issues/comments/${commentId}`, {
1774 method: 'PATCH',
1775 body: JSON.stringify({
1776 body: this.formatNoteForGithub(note),
1777 }),
1778 });
1779 } catch (error) {
1780 console.error('Failed to update issue comment:', error);
1781 throw new APIError('Failed to update note', error.status || 500, API_NAME);
1782 }
1783 }
1784
1785 /**
1786 * Delete a GitHub issue comment

Callers 1

updateEntryNoteMethod · 0.95

Calls 2

requestMethod · 0.95
formatNoteForGithubMethod · 0.95

Tested by

no test coverage detected