code: function createFile(chainedResult) {
  	const {owner, repo, path, message, content, branch} = chainedResult
  	return github.repos.createFile({owner, repo, path, message, branch, content: encodeContent(content)})
  		.then(result=>({...chainedResult, sha: result.data.content.sha}))
  }
docs: expects in theDetails: { owner: owner, repo: repo, path: path, message:  the commit message content: the doc, branch: branch (default master) } returns the chained result object for passing to further promise based calls.