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

Method createRef

lib/Repository.js:53–55  ·  view source on GitHub ↗

* Create a reference * @see https://developer.github.com/v3/git/refs/#create-a-reference * @param {Object} options - the object describing the ref * @param {Requestable.callback} [cb] - will receive the ref * @return {Promise} - the promise for the http request

(options, cb)

Source from the content-addressed store, hash-verified

51 * @return {Promise} - the promise for the http request
52 */
53 createRef(options, cb) {
54 return this._request('POST', `/repos/${this.__fullname}/git/refs`, options, cb);
55 }
56
57 /**
58 * Delete a reference

Callers 2

createBranchMethod · 0.95
repository.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected