-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
[BUG] danger.github.reviews only providing the first 30 reviews #1383
Comments
It looks like 30 is the default provided by the GitHub API. https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28#list-reviews-for-a-pull-request It can go up to 100. |
Can danger be updated to get the max 100, or handle paging if more than 30? |
Sounds like an impressive PR, but yeah, I think either of those options (auto-paginating, or bumping the number to be higher) is totally fine |
I’d be happy to review a PR if you want to submit a patch @jcook-uptycs We have the whole Github API Client embedded, so you should be able to trace it to either increase the limit, or set something up for auto-pagination. |
Depending on what you’re doing, would ensuring the reviews are fetched by increasing age solve your problem? Or are you hunting for specific reviewers or something? — Github has an |
I am looking for reviews from certain people, but they are not code owners. It's a secondary approval. Example after the code owners have approved then someone in QA has to approve. @fbartho If you are not talking about CODEOWNERS, can you include a link to info on it? |
No @jcook-uptycs, I was indeed talking about Based on your use-case it does sound like you want to expand the reviews you're checking for! -- That said, you could solve this by using the |
Describe the bug
A clear and concise description of what the bug is.
When using
danger.github.reviews
it only includes the first 30 reviews on the PR.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to have the correct number of reviews.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: