Set protected branches "Allowed to push" to "No one" via API
Description
It is currently only possible to set the "Allowed to push" (or merge) properties of a protected branch to either "Master" or "Developers + Masters" via the API (using the developers_can_push
property of the "Protect repository branch" endpoint).
However, we would like to set it to "No one" (we have some branches which must only be modified via a MR).
Proposal
To keep the API similar to the protect branches UI, I'd propose replacing the current developers_can_push = boolean
property with an allowed_to_push = 'no one' | 'masters' | 'developers+masters'
. The same should be done to replace the developers_can_merge
parameter.