text: import { LOAD_REPOS, LOAD_REPOS_SUCCESS, LOAD_REPOS_ERROR } from './constants';
  
  /**
   * Load the repositories, this action starts the request saga
   *
   * @return {object} An action object with a type of LOAD_REPOS
   */
  export function loadRepos(requestType) {
    return {
      type: LOAD_REPOS,
      requestType,
    };
  }
  
  /**
   * Dispatched when the repositories are loaded by the request saga
   *
   * @param  {array} repos The repository data
   * @param  {string} username The current username
   *
   * @return {object}      An action object with a type of LOAD_REPOS_SUCCESS passing the repos
   */
  export function reposLoaded() {
    return {
      type: LOAD_REPOS_SUCCESS,
    };
  }
  
  /**
   * Dispatched when loading the repositories fails
   *
   * @param  {object} error The error
   *
   * @return {object}       An action object with a type of LOAD_REPOS_ERROR passing the error
   */
  export function repoLoadingError(error) {
    return {
      type: LOAD_REPOS_ERROR,
      error,
    };
  }
  