Detect PR with “Review Required” in Github API

Using the github API, I can’t determine if the pull request is in the “Verification Required” status (as the setting from https://help.github.com/articles/enabling-required-reviews-for-pull-requests/ ) .

It is not listed in PR's description https://api.github.com/repos/my_company/my_project/pulls, but https://api.github.com/repos/my_company/my_project/statuses/abc123only TravisCI statuses are displayed in the status list of.

Since no review happened, the comments from are https://api.github.com/repos/my_company/my_project/pulls/123/commentsalso empty (as expected, I just checked it to see if it has review status).

So, is there an API request that I’m missing, which will clearly indicate if the PR is in the “Verification Required” status?

+4
source share
1 answer

November 2016: No, it seems there is no direct API.

You can see the whole evolution of the future API in the Previews API , and again there is nothing regarding the reviews.
This will be a request to the GitHub support function.

The January 2017 update mentioned by OP celadonz in the comments , listing of reviews on PR is in beta .

+2
source

Source: https://habr.com/ru/post/1660597/


All Articles