feat: add retest comment, delete it

This commit is contained in:
2018-10-18 16:31:19 -07:00
parent c117cb847d
commit ced41f4a49
2 changed files with 32 additions and 8 deletions

7
src/lib/comments.mjs Normal file
View File

@@ -0,0 +1,7 @@
export async function createComment(repo, issueId, body) {
return repo.issues(issueId).comments.create({ body });
}
export async function deleteComment(repo, commentId) {
return repo.issues.comments(commentId).remove();
}