feat: add a clean command

This commit is contained in:
2018-10-23 15:09:27 -07:00
parent a58cf864e1
commit f3773f7ee7
3 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
export default async function getPull(repo, id) {
const { items } = await repo.issues(id).comments.fetch();
return items.map(item => ({
id: item.id,
owner: item.user.login,
body: item.body,
}));
}