Skip to content

Commit

Permalink
fix: request more than one comment into the iterator
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Koppert <[email protected]>
  • Loading branch information
zkoppert committed Aug 1, 2023
1 parent d82533d commit fd029d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time_to_first_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit fd029d1

Please sign in to comment.