GSA/code-gov-front-end

View on GitHub
src/actions/load-project.js

Summary

Maintainability
A
0 mins
Test Coverage
import { LOAD_PROJECT } from 'constants/actions'
import client from 'api-client'

export default function(repoId) {
  return async dispatch => {
    const data = await client.getRepoById(repoId)
    dispatch({ type: LOAD_PROJECT, data })
  }
}