Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): allow download script to handle more than 30 GitHub relea…
…se assets To download the built schemas from `octokit/openapi`, we use GitHub's "List release assets" API. This API is paginated, which means that it will only by default return up to 30 assets. This can mean that we miss data when the script runs - e.g. see [this commit][1] where GitHub AE schemas were dropped. This fixes the issue by using Octokit's pagination plugin to automatically cycle through pages and find all release assets. A more lightweight fix would have been to set the `per_page` attribute, but this is more correct and more future-proof. [1]: 2704936
- Loading branch information