diff --git a/internal_packages/github-contact-card/lib/github-user-store.es6 b/internal_packages/github-contact-card/lib/github-user-store.es6 index 76b6a1d33..71494f771 100644 --- a/internal_packages/github-contact-card/lib/github-user-store.es6 +++ b/internal_packages/github-contact-card/lib/github-user-store.es6 @@ -80,9 +80,9 @@ class GithubUserStore extends NylasStore { // repositories. if (profile !== false) { profile.repos = []; - this._githubRequest(profile.repos_url, (reposErr, reposResp, repos)=> { + this._githubRequest(`https://api.github.com/search/repositories?q=user:${profile.login}&sort=stars&order=desc`, (reposErr, reposResp, data)=> { // Sort the repositories by their stars (`-` for descending order) - profile.repos = _.sortBy(repos, (repo)=> -repo.stargazers_count); + profile.repos = _.sortBy(data.items, (repo)=> -repo.stargazers_count); // Trigger so that our React components refresh their state and display // the updated data. this.trigger(this);