The Protected Branches API now has a setting for requiring up to 6 approving pull request reviews. You can manage and view this setting from four endpoints:
- Get branch protection
- Update branch protection
- Get pull request review enforcement of protected branch
- Update pull request review enforcement of protected branch
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: