Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve all PR reviews when checking approvals #190

Merged
merged 2 commits into from
May 12, 2022

Conversation

jonathanperret
Copy link
Contributor

A proposed fix for #189 .

The results from octokit.pulls.listReviews are paginated; if there were more than 30 "reviews" (note that this includes standalone comments on the PR) before the requested number of approvals, the PR would be considered unapproved and wouldn't get merged.

By using the octokit.paginate helper we make sure to retrieve all reviews.

The results from octokit.pulls.listReviews are paginated; if
there were more than 30 "reviews" (note that this includes
standalone comments on the PR) before the requested number
of approvals, the PR would be considered unapproved and wouldn't
get merged.

By using the `octokit.paginate` helper we make sure to retrieve
all reviews.
@pascalgn pascalgn merged commit dfd59ba into pascalgn:main May 12, 2022
@pascalgn
Copy link
Owner

pascalgn commented May 12, 2022

Good point and thanks for the PR, it's merged now! 👍 (it's also released as v0.15.3 now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants