Skip to content

API to check if a PR is approved by a reviewer #24346

Discussion options

You must be logged in to vote

Hey there @kalyan-nidumolu 👋

Indeed, there is a state value returned from this endpoint:

docs.github.com

Pulls - GitHub Docs

Syntax is:

GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews

…and note that in the default response, we have:

"state": "APPROVED",

Let us know how you go!

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@julienbonastre
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment