* Delete a GitHub issue comment
(commentId: string | number)
| 1786 | * Delete a GitHub issue comment |
| 1787 | */ |
| 1788 | async deleteIssueComment(commentId: string | number): Promise<void> { |
| 1789 | try { |
| 1790 | await this.request(`${this.repoURL}/issues/comments/${commentId}`, { |
| 1791 | method: 'DELETE', |
| 1792 | }); |
| 1793 | } catch (error) { |
| 1794 | console.error('Failed to delete issue comment:', error); |
| 1795 | throw new APIError('Failed to delete note', error.status || 500, API_NAME); |
| 1796 | } |
| 1797 | } |
| 1798 | |
| 1799 | /** |
| 1800 | * Close the notes issue when an entry is published |
no test coverage detected