Can I get the number of approvals of my pull request?


#1

Hello.

I want to count how many reviewers approved my pull request. I think I can get the number of reviewers by counting requested_reviewers property. However, how can I get the number of reviewers who approve the pull request?

Is there an API for that? I cannot find it.

Thanks,


#2

I do this in my app. Use the List reviews on a pull request endpoint, then filter by the state property if you only want approvals.