import logger from './logger.mjs'; export async function createComment(repo, issueId, body) { return repo.issues(issueId).comments.create({ body }); } export async function deleteComment(repo, commentId) { const res = await repo.issues.comments(commentId).remove(); if (res) logger.debug(`Comment ${commentId} deleted`); else logger.error(new Error(`Failed to remove comment ${commentId}`)); return res; }