MCPcopy Index your code
hub / github.com/github-tools/github / createTree

Method createTree

lib/Repository.js:355–360  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

moveMethod · 0.95

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected