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

Method getBranch

lib/Repository.js:162–164  ·  view source on GitHub ↗

* Get a single branch * @see https://developer.github.com/v3/repos/branches/#get-branch * @param {string} branch - the name of the branch to fetch * @param {Requestable.callback} cb - will receive the branch from the API * @returns {Promise} - the promise for the http request

(branch, cb)

Source from the content-addressed store, hash-verified

160 * @returns {Promise} - the promise for the http request
161 */
162 getBranch(branch, cb) {
163 return this._request('GET', `/repos/${this.__fullname}/branches/${branch}`, null, cb);
164 }
165
166 /**
167 * Get a commit from the repository

Callers 1

repository.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected