Update to Protected Branches API Preview

A few months ago, we released Pull Request Reviews at GitHub Universe. We're now updating the Protected Branches API with the ability to enable and disable required pull request reviews.

This will be a breaking change, but to make the transition easier, we've decided to not require you to explicitly include required_pull_request_reviews object on the general update branch protection endpoint until the preview period is over. At that point, if you do not include the required_pull_request_reviews object, you will receive an error.

How can I try it?

To access this functionality during the preview period, you’ll need to provide the following custom media type in the Accept header:


Take a look at the docs here. If you have any questions, please get in touch.