Prevent pushes using branch protection (OD-1376)
Ben Cooper opened 3 years 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 3 years 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' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Ben Cooper commented 3 years ago

    That's great to know, thanks!

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1376
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover