From fd029d1e7c6359e3895cc66766cca754c148ad3e Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Tue, 1 Aug 2023 16:03:06 -0700 Subject: [PATCH] fix: request more than one comment into the iterator Signed-off-by: Zack Koppert --- time_to_first_response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/time_to_first_response.py b/time_to_first_response.py index b3c20c1..a5295ca 100644 --- a/time_to_first_response.py +++ b/time_to_first_response.py @@ -48,7 +48,7 @@ def measure_time_to_first_response( # Get the first comment time if issue: comments = issue.issue.comments( - number=1, sort="created", direction="asc" + number=20, sort="created", direction="asc" ) # type: ignore for comment in comments: if comment.user.login in ignore_users: @@ -59,7 +59,7 @@ def measure_time_to_first_response( # so we may also get the first review comment time if issue.issue.pull_request_urls: pull_request = issue.issue.pull_request() - review_comments = pull_request.reviews(number=1) # type: ignore + review_comments = pull_request.reviews(number=50) # type: ignore for review_comment in review_comments: if review_comment.user.login in ignore_users: continue