By my understanding the branch protection built into OneDev currently allows you to prevent force pushes, branch creation, and branch deletion.
Additionally it would be useful to prevent users/groups/roles from being able to push to a particular branch at all, or only allowing them to only be able to merge branches or pull requests. I believe this is similar to the functionality provided by GitLab for example.
Robin Shen commented 12 months ago
Branch protection already has this ability. You may specify required reviewers and it effectively prevents pushing to the branch directly, unless approved by specified users via pull requests.
For a particular rule, you can also specify applicable users. This gives you flexiblity to define who the rule should be applied to.
By my understanding the branch protection built into OneDev currently allows you to prevent force pushes, branch creation, and branch deletion.
Additionally it would be useful to prevent users/groups/roles from being able to push to a particular branch at all, or only allowing them to only be able to merge branches or pull requests. I believe this is similar to the functionality provided by GitLab for example.