Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 3x 1x | import validateOptions from './validateOptions';
/** Show repository information.
* @module src/modules/getRepository
* @param {Object} superagent request object.
* @param {Object} options - Repository options.
* @param {string} options.repo - The fully-qualified repository name, i.e., 'username/reponame'.
* @return {Promise} The superagent promise object.
*/
export default (request, options) => {
validateOptions(options, ['repo']);
return request.get([options.baseUrl + "repos",
options.repo + ".json"].join("/"));
}
|