Skip to content

Instantly share code, notes, and snippets.

@SplitPixl
Last active February 23, 2018 00:43
Show Gist options
  • Save SplitPixl/d09f48d7b7c81f989f063d47e5262a5c to your computer and use it in GitHub Desktop.
Save SplitPixl/d09f48d7b7c81f989f063d47e5262a5c to your computer and use it in GitHub Desktop.
fetch('https://api.github.com/search/commits?q=author:SplitPixl&sort=author-date', {headers: new Headers({'Accept': 'application/vnd.github.cloak-preview'})}).then(r => {return r.json()}).then(res => {
var repos = res.items.map(commit => {return {name: commit.repository.full_name, url: commit.repository.url}})
console.log(repos)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment