Disallow push/commit in branch rules (OD-2126)
Muhammed Hussein karimi opened 1 year ago

Hi I want to disallow access to direct push/commit to a single branch (From UI/API or Git Push) and I want to force users to create PR

For example users have to create a PR from other branches to the main branch to commit changes

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

    This can be achieved via branch protection:

    2024-10-20_08-08-10.png

    You may configure a required reviewer for the branch and all direct push will be rejected, and OneDev will prompt user to create pull request instead.

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