* Create a new tree in git * @see https://developer.github.com/v3/git/trees/#create-a-tree * @param {Object} tree - the tree to create * @param {string} baseSHA - the root sha of the tree * @param {Requestable.callback} cb - will receive the new tree that is created * @return {Pr
(tree, baseSHA, cb)
| 353 | * @return {Promise} - the promise for the http request |
| 354 | */ |
| 355 | createTree(tree, baseSHA, cb) { |
| 356 | return this._request('POST', `/repos/${this.__fullname}/git/trees`, { |
| 357 | tree, |
| 358 | base_tree: baseSHA, // eslint-disable-line camelcase |
| 359 | }, cb); |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Add a commit to the repository |