#1376  Prevent pushes using branch protection
Closed
Ben Cooper opened 12 months ago

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.

Robin Shen changed state to 'Closed' 12 months ago
Previous Value Current Value
Open
Closed
Ben Cooper commented 12 months ago

That's great to know, thanks!

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1376
Please wait...
Page is in error, reload to recover