Reputation: 5294
Is it possible to disable direct merge to my default branch (develop)? I would like to make sure that everyone has to open a PullRequest, where we can do codeReviews, before the code could be pushed to develop.
I made develop as a protected branch, but I am not sure that's enough.
Upvotes: 1
Views: 460
Reputation: 1323203
The About protected branches does include:
- Can't have changes merged into it until required status checks pass
- Can't have changes merged into it until required reviews are approved
That would be enough to prevent direct unsupervised merge.
Upvotes: 1