Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

How do I find out approval status of a Pull request?

How do I find approval status of a pull request?

For example, https://api.github.com/repos/celo-org/celo-monorepo/pulls/828 is an approved PR but I don't see any field in GitHub API indicating that.

1 Reply
Community Manager
Message 2 of 2

Re: How do I find out approval status of a Pull request?

The simple version is that you need to look at the list of pull request reviews for the given pull request. If any one of them has the status of `APPROVED`, then the pull request is approved. This doesn't necessarily mean that the pull request is mergeable because there may be branch protection settings that need to be validated, only that it has been approved by someone.

 

I hope that helps! Let us know if you have more questions.