When a reviewer reviews a PR multiple times, each review gets stored, and can be retrieved. It’d be nice if we had a way to only retrieve the “final” review, the one that’s shown in the UI. Otherwise we have to do a lot of post-processing to iterate through each review by a given author to find the “last” one.
Although this may be thwarted by the fact that a comment review can be submitted after a vote of APPROVED or CHANGES_REQUESTED, and the comment review will not change the state of that earlier review and how it applies to the PR, so that bit might need to get cleaned up as well.
Basically, I’m looking for a way via the API to get the last review that matters, the last review per user of a APPROVED or CHANGES_REQUESTED state.