Skip to content

Commit

Permalink
fix: fix time to first response
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed Aug 7, 2023
1 parent c3d29d0 commit d436710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions time_to_first_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def measure_time_to_first_response(
if comment.user.login in ignore_users:
continue
first_comment_time = comment.created_at
break

# Check if the issue is actually a pull request
# so we may also get the first review comment time
Expand All @@ -66,6 +67,7 @@ def measure_time_to_first_response(
if review_comment.user.login in ignore_users:
continue
first_review_comment_time = review_comment.submitted_at
break

# Figure out the earliest response timestamp
if first_comment_time and first_review_comment_time:
Expand Down

0 comments on commit d436710

Please sign in to comment.