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 ?
Hi @Dineshmathiazhagan
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
It looks like you're new here. Sign in or register to get started.