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

@ -70,8 +70,9 @@ export class GitHubReleaser implements Releaser {
owner: string;
repo: string;
}): AsyncIterableIterator<{ data: Release[] }> {
const updatedParams = { per_page: 100, ...params };
return this.github.paginate.iterator(
this.github.repos.listReleases.endpoint.merge(params)
this.github.repos.listReleases.endpoint.merge(updatedParams)
);
}
}