API Protected Branch missing UI functionality

Hi GitLab,

The UI allows setting up Protected Branches where no-one is able to push to the protected branch:

image

But, the API only supports restricting the role Developer for pushing, as per the documentation

Is there a reason for this? Is it possible to add flags for master_can_push?

Edited Sep 23, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading