* 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)
| 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 |
no test coverage detected