Skip to content

Commit fd029d1

Browse files
committed
fix: request more than one comment into the iterator
Signed-off-by: Zack Koppert <[email protected]>
1 parent d82533d commit fd029d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

time_to_first_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def measure_time_to_first_response(
4848
# Get the first comment time
4949
if issue:
5050
comments = issue.issue.comments(
51-
number=1, sort="created", direction="asc"
51+
number=20, sort="created", direction="asc"
5252
) # type: ignore
5353
for comment in comments:
5454
if comment.user.login in ignore_users:
@@ -59,7 +59,7 @@ def measure_time_to_first_response(
5959
# so we may also get the first review comment time
6060
if issue.issue.pull_request_urls:
6161
pull_request = issue.issue.pull_request()
62-
review_comments = pull_request.reviews(number=1) # type: ignore
62+
review_comments = pull_request.reviews(number=50) # type: ignore
6363
for review_comment in review_comments:
6464
if review_comment.user.login in ignore_users:
6565
continue

0 commit comments

Comments
 (0)