old_contents: 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);
      });
  
    };
  }
  
new_contents: 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, getState) {
      const currentState = getState();
  
      return GithubAPI.getUserOwnedRepos(currentState.oauths.authenticatedUser.login).then(repos => {
        dispatch(reposLoaded(repos));
      }).catch(error => {
        throw(error);
      });
  
    };
  }
  
subject: Refactor 'loadRepos' in repoActions.js to invoke getUserOwnedRepos method from GithubAPI