import * as types from './actionTypes';
import GithubAPI from '../api/githubAPI';

export function reposLoaded(repos){
  return {type: types.REPOS_LOADED, repos};
}

export function loadRepos(){
  return function(dispatch) {
    return GithubAPI.getCurrentUserAllRepos().then(repos => {
      dispatch(reposLoaded(repos));
    }).catch(error => {
      throw(error);
    });

  };
}

@@ -218,56 +218,142 @@
 atch
-) %7B%0A    return GithubAPI.getCurrentUserAllRepos(
+, getState) %7B%0A    const currentState = getState();%0A%0A    return GithubAPI.getUserOwnedRepos(currentState.oauths.authenticatedUser.login
 ).th

Refactor 'loadRepos' in repoActions.js to invoke getUserOwnedRepos method from GithubAPI