mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Unprototype "Draft" mode in Differential
Summary: Fixes T2543. This mode has been a stable prototype for a very long time now; promote it so "--draft" can promote out of "experimental" in Arcanist. Test Plan: See T2543 for discussion. Maniphest Tasks: T2543 Differential Revision: https://secure.phabricator.com/D20983
This commit is contained in:
parent
35a18146a2
commit
dc35ce79e4
1 changed files with 2 additions and 7 deletions
|
@ -73,13 +73,8 @@ final class DifferentialRevision extends DifferentialDAO
|
|||
$view_policy = $app->getPolicy(
|
||||
DifferentialDefaultViewCapability::CAPABILITY);
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) {
|
||||
$initial_state = DifferentialRevisionStatus::DRAFT;
|
||||
$should_broadcast = false;
|
||||
} else {
|
||||
$initial_state = DifferentialRevisionStatus::NEEDS_REVIEW;
|
||||
$should_broadcast = true;
|
||||
}
|
||||
|
||||
return id(new DifferentialRevision())
|
||||
->setViewPolicy($view_policy)
|
||||
|
|
Loading…
Reference in a new issue