Each code review has an indicator for whether it was the Pull Request’s first review.
First to review.
The indicator can also change color depending on time elapsed between the Pull Request being “ready” and the review timestamp.
< 2 hours.
> 2 hours.
What ready means
The timestamp used for being “ready” is calculated based on what is available first:
The timestamp of the first review request.
Or the timestamp when the Pull Request was opened. A draft isn’t considered open.
Or the timestamp the Pull Request was created.
Examples
A Pull Request that got reviewed while in draft state, without requesting reviews, would use the Pull
Request creation time.
A Pull Request that got created in draft, converted to open, and then got reviewed without ever requesting reviews, would use the
timestamp of when it was converted to open.
A Pull Request that got created in draft, and requested multiple reviewers, would use the timestamp of the first review request.
While this may seem overly complex, it’s important so that the time elapsed calculation is fair for developers.
Weekends are not included when calculating time elapsed.