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

Method deleteIssueComment

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

* Delete a GitHub issue comment

(commentId: string | number)

Source from the content-addressed store, hash-verified

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

Callers 1

deleteEntryNoteMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected