Commit be2c4b36 authored by Daniel Stone's avatar Daniel Stone Committed by Ana Rute Mendes
Browse files

LOCAL/UI: Diffusion: Set default autoclose to 'master'

Encode policy, allowing patches to land on feature branches without
closing tasks.
parent 3d2aa478
...@@ -90,6 +90,11 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO ...@@ -90,6 +90,11 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
// parsing it. // parsing it.
$repository->setDetail('importing', true); $repository->setDetail('importing', true);
// There doesn't seem to be a good way to set the default for a detail
// without adding a specialized getter. Ho hum.
$autoclose = array_fuse(array('master'));
$repository->setDetail('close-commits-filter', $autoclose);
return $repository; return $repository;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment