PR Pagination Fails #1780
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Related to:
TLDR
Here's the details of this bug:
Attempts to mitigate
node_modules
to switch to the GraphQL strategy; HELPED!Deeper detail
Switch to using GraphQL and you get:
I locally modified https://github.com/googleapis/release-please/blob/main/src/github.ts#L619 to use
pullRequestIteratorWithFiles
instead ofpullRequestIteratorWithoutFiles
. SincepullRequestIteratorWithFiles
uses the GraphQL API through octokit - you get fault tolerance and retries. Technically, the REST iterator through octokit should do the same thing; but it doesn't.Further, octokit violates Github's Docs by sending the
application/vnd.github.v3+json
accept
header - which should beapplication/vnd.github+json
.Solution Path
Switch to GraphQL iterator for PRs
I will likely submit a PR to switch away from the REST iterator for PRs. This is a vastly improved experience, fault tolerant and more verbose. This does NOT resolve the overall issue of Release Please exhausting API request limits through aggressively paging through 200 hundred PRs at multiple stages. It would be nice if that 200 PR lookup limit was configurable.
The text was updated successfully, but these errors were encountered: