This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getDispatch = (initialState, render) => { | |
let stateContainer = Container.of(initialState); | |
const updateState = action => new IO(() => { | |
stateContainer = stateContainer.map(action); | |
return stateContainer; | |
}); | |
return action => { | |
const sideEffects = pipe( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Uses the https://github.com/github-tools/github library under the hood and exposes it as `gh` property | |
function GithubAPI(auth) { | |
let repo; | |
let filesToCommit = []; | |
let currentBranch = {}; | |
let newCommit = {}; | |
//the underlying library for making requests | |
let gh = new GitHub(auth); |