protected function shouldApplyHeraldRules(PhabricatorLiskDAO $object, array $xactions)
 {
     if ($this->getIsNewObject()) {
         return true;
     }
     foreach ($xactions as $xaction) {
         switch ($xaction->getTransactionType()) {
             case DifferentialTransaction::TYPE_UPDATE:
                 if (!$this->getIsCloseByCommit()) {
                     return true;
                 }
                 break;
             case DifferentialTransaction::TYPE_ACTION:
                 switch ($xaction->getNewValue()) {
                     case DifferentialAction::ACTION_CLAIM:
                         // When users commandeer revisions, we may need to trigger
                         // signatures or author-based rules.
                         return true;
                 }
                 break;
         }
     }
     return parent::shouldApplyHeraldRules($object, $xactions);
 }
 protected function shouldApplyHeraldRules(PhabricatorLiskDAO $object, array $xactions)
 {
     foreach ($xactions as $xaction) {
         switch ($xaction->getTransactionType()) {
             case PhabricatorAuditTransaction::TYPE_COMMIT:
                 $repository = $object->getRepository();
                 if (!$repository->shouldPublish()) {
                     return false;
                 }
                 return true;
             default:
                 break;
         }
     }
     return parent::shouldApplyHeraldRules($object, $xactions);
 }