@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Start revisions in "Draft" if prototypes are enabled

Summary: Ref T2543. This is a less ambitious version of the rule in D18628, which I backed off from, since I think this probably still has a fair number of loose ends to tie up.

Test Plan: Created a revision locally.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T2543

Differential Revision: https://secure.phabricator.com/D18713

+7 -1
+7 -1
src/applications/differential/storage/DifferentialRevision.php
··· 67 67 $view_policy = $app->getPolicy( 68 68 DifferentialDefaultViewCapability::CAPABILITY); 69 69 70 + if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) { 71 + $initial_state = DifferentialRevisionStatus::DRAFT; 72 + } else { 73 + $initial_state = DifferentialRevisionStatus::NEEDS_REVIEW; 74 + } 75 + 70 76 return id(new DifferentialRevision()) 71 77 ->setViewPolicy($view_policy) 72 78 ->setAuthorPHID($actor->getPHID()) 73 79 ->attachRepository(null) 74 80 ->attachActiveDiff(null) 75 81 ->attachReviewers(array()) 76 - ->setModernRevisionStatus(DifferentialRevisionStatus::NEEDS_REVIEW); 82 + ->setModernRevisionStatus($initial_state); 77 83 } 78 84 79 85 protected function getConfiguration() {