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

Is there a way in Github API v3 to get list of statuses that are flagged as required

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

1 Reply
Pilot Lvl 3
Message 2 of 2

Re: Is there a way in Github API v3 to get list of statuses that are flagged as required

That data is available in the branch API, https://developer.github.com/v3/repos/branches/#list-branches