retry requests

This commit is contained in:
softprops 2019-10-02 20:51:12 -04:00
parent 6247f9299a
commit 2e7c800734
6 changed files with 53 additions and 5 deletions

View file

@ -31,7 +31,8 @@ class GitHubReleaser {
return this.github.repos.createRelease(params);
}
allReleases(params) {
return this.github.paginate.iterator(this.github.repos.listReleases.endpoint.merge(params));
const updatedParams = Object.assign({ per_page: 100 }, params);
return this.github.paginate.iterator(this.github.repos.listReleases.endpoint.merge(updatedParams));
}
}
exports.GitHubReleaser = GitHubReleaser;