* Update a GitHub issue comment
(commentId: string | number, note: Note)
| 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 |
no test coverage detected