I'm setting up merge automation, merging automatically when tests pass. I'm looking for a way to identify the statuses that are flagged as required and only check for their status. Is there any API property i can use to get this?
More specifically I'm looking for all the statuses that are flagged as required in branch protection in repo settings:
Require status checks to pass before merging
That data is available in the branch API, https://developer.github.com/v3/repos/branches/#list-branches