If a developer accidentally deleted a file and tries to merge his branch to remote branch's he may delete files how do we prevent any pull request to avoid merge if there is a file deletion ?
Currently, there isn't a way of doing that. However, you can set the branch permissions for your repository to require a minimum number of approvals before merging the pull request.
This will present an opportunity for code review as well.
Adding to what @Joao Sgreccia said you can also setup default reviewers for repositories if there are "experts" that should either review all the changes or at least be informed that changes are happening.
Just another thought.
-Jimmy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.