From 473eb543f98b8ad68c80a71a9bc8de70e579e0e0 Mon Sep 17 00:00:00 2001 From: Mike Woods Date: Fri, 30 Sep 2016 13:57:41 -0700 Subject: [PATCH] Repository.(listTags,listCommits,listReleases) now uses `_requestAllPages` to fetch full result --- lib/Repository.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } /**