diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index 745438e086..31ae83db3b 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -418,6 +418,10 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO { } public function shouldAutocloseBranch($branch) { + if ($this->getDetail('disable-autoclose', false)) { + return false; + } + return $this->isBranchInFilter($branch, 'close-commits-filter'); }