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

Method listRepos

lib/User.js:62–72  ·  view source on GitHub ↗

* List the user's repositories * @see https://developer.github.com/v3/repos/#list-user-repositories * @param {Object} [options={}] - any options to refine the search * @param {Requestable.callback} [cb] - will receive the list of repositories * @return {Promise} - the promise for the

(options, cb)

Source from the content-addressed store, hash-verified

60 * @return {Promise} - the promise for the http request
61 */
62 listRepos(options, cb) {
63 if (typeof options === 'function') {
64 cb = options;
65 options = {};
66 }
67
68 options = this._getOptionsWithDefaults(options);
69
70 log(`Fetching repositories with options: ${JSON.stringify(options)}`);
71 return this._requestAllPages(this.__getScopedUrl('repos'), options, cb);
72 }
73
74 /**
75 * List the orgs that the user belongs to

Callers

nothing calls this directly

Calls 3

__getScopedUrlMethod · 0.95
_requestAllPagesMethod · 0.80

Tested by

no test coverage detected