Skip to content

Instantly share code, notes, and snippets.

@manmorjim
Created March 6, 2018 16:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manmorjim/f948758b8fb3c5a4507428577eed85fc to your computer and use it in GitHub Desktop.
Save manmorjim/f948758b8fb3c5a4507428577eed85fc to your computer and use it in GitHub Desktop.
fetch('https://api.github.com/repos/:user/:repo/issues?per_page=1000').then(res => res.json()).then(res => {
console.log('"title","labels","id","created","author"');
console.log(res.map(i => `"${i.title}","${i.labels.map(l => l.name).join(';')}","#${i.number}","${i.created_at}","${i.user.login}"`).join('\n'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment