* 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)
| 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 |
nothing calls this directly
no test coverage detected