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

Method getContents

lib/Repository.js:507–512  ·  view source on GitHub ↗

* Get the contents of a repository * @see https://developer.github.com/v3/repos/contents/#get-contents * @param {string} ref - the ref to check * @param {string} path - the path containing the content to fetch * @param {boolean} raw - `true` if the results should be returned raw inst

(ref, path, raw, cb)

Source from the content-addressed store, hash-verified

505 * @return {Promise} - the promise for the http request
506 */
507 getContents(ref, path, raw, cb) {
508 path = path ? `${encodeURI(path)}` : '';
509 return this._request('GET', `/repos/${this.__fullname}/contents/${path}`, {
510 ref,
511 }, cb, raw);
512 }
513
514 /**
515 * Get the README of a repository

Callers 1

repository.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected