Allow user to create commits in any branch except master/main (OD-2075)
Senderman opened 1 year ago

Currenlty, there's no way for repo owner (correct me if I'm wrong) to give an user privilege to commit to any branch except for master/main. We need something similar to "developer" repo role on gitlab https://docs.gitlab.com/ee/user/permissions.html

There're branch protection rules, but there's no way to use them to prohibit user to update master/main branch

  • Robin Shen commented 1 year ago

    The branch protection rule serves this purpose. As long as you require some other one to review the change, users applicable for the rule will not be able to update target branches directly.

  • Senderman commented 1 year ago

    @robin I'm sorry for creating the issue. It wasn't working on onedev 11.0.9 (or I did smth wrong) Now this works, thanks!

  • Robin Shen changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 1 year ago

    No problem. Closing the issue now

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