No "Require review from Code Owners" field in BranchProtectionRule's GraphQL schema.

I was trying to batch setup branch protection rules using the GraphQL API. Since I need to use wildcard in branch pattern, the v3 REST API doesn’t work for me. However I didn’t find a way to select “Require review from Code Owners” with GraphQL. Is this field missing? Will it be added in the future?

Thanks!

1 Like

Apologies for not getting back to you sooner, but it appears that in the intervening time, the requiresCodeOwnerReviews field has been added.

Let us know if you have more questions.

1 Like

Great that it is now on the CreateBranchProtectionRuleInput but what about the BranchProtectionRule object itself to check it on queries? It doesn’t seem to have been added there, has it been missed or am I missing something?