When looking at a PR on GitHub the sidebar has a very clear state for each reviewer based on their latest review (or lack thereof).
However getting this same simple information via the API is pretty tedious. The best I have found is this endpoint:
I can load all the reviews, sort them by time, filter by user, and then get the latest state for each user. If a review had a lot of back-and-forth this can involve loading and sorting through a bunch of extra data. Plus it’s error prone.
Is there any better way?