diff --git a/lib/Repository.js b/lib/Repository.js index 301e1230..52323010 100644 --- a/lib/Repository.js +++ b/lib/Repository.js @@ -82,7 +82,7 @@ class Repository extends Requestable { * @return {Promise} - the promise for the http request */ listTags(cb) { - return this._request('GET', `/repos/${this.__fullname}/tags`, null, cb); + return this._requestAllPages(`/repos/${this.__fullname}/tags`, null, cb); } /** @@ -192,7 +192,7 @@ class Repository extends Requestable { options.since = this._dateToISO(options.since); options.until = this._dateToISO(options.until); - return this._request('GET', `/repos/${this.__fullname}/commits`, options, cb); + return this._requestAllPages(`/repos/${this.__fullname}/commits`, options, cb); } /** @@ -767,7 +767,7 @@ class Repository extends Requestable { * @return {Promise} - the promise for the http request */ listReleases(cb) { - return this._request('GET', `/repos/${this.__fullname}/releases`, null, cb); + return this._requestAllPages(`/repos/${this.__fullname}/releases`, null, cb); } /**