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

Method deleteIssueComment

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

* Delete a GitHub issue comment

(commentId: string | number)

Source from the content-addressed store, hash-verified

1794 * Delete a GitHub issue comment
1795 */
1796 async deleteIssueComment(commentId: string | number): Promise<void> {
1797 try {
1798 await this.request(`${this.repoURL}/issues/comments/${commentId}`, {
1799 method: 'DELETE',
1800 });
1801 } catch (error) {
1802 console.error('Failed to delete issue comment:', error);
1803 throw new APIError('Failed to delete note', error.status || 500, API_NAME);
1804 }
1805 }
1806
1807 /**
1808 * Close the notes issue when an entry is published

Callers 1

deleteEntryNoteMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected