You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After lastPushedAt was deprecated, one still needs a method to determine which reviews are still valid. After a review has been made, the branch can still be pushed to.
One way to do this is to check if the commit associated with the review is also the latest.
After
lastPushedAt
was deprecated, one still needs a method to determine which reviews are still valid. After a review has been made, the branch can still be pushed to.One way to do this is to check if the commit associated with the review is also the latest.
One can use the
latestReviews[].commit.id == pullRequest.commits[-1].id
.Example:
Call with
Output
Maybe the comparison can just be
review.state == "APPROVED" && review.commit.id != null
.The text was updated successfully, but these errors were encountered: