I am able to get review comments and comments provided from Github API. But I did not find any API to retrieving comments provided for “Request Changes” and “Review Required”
@aparnan, hello there and welcome to the GitHub Support Community!
If someone has created a review that requests changes and you’d like to retrieve that reviews comments, you could:
List reviews for that pull request and identify the review that requested changes. The response is a JSON array, where each element represents a review. Identify the review that requested changes and cache its
- Given the
idof the review that requested changes, make another request that lists comments for that pull request review.
If a review is required, this indicates that the base branch of the pull request is a protected branch that requires at least one or more approved reviews before any changes can be merged in. Our Branches API is extensive and there are a number of endpoints for querying, modifying, or deleting branch protections. I hope this context helps!