diff --git a/src/applications/audit/editor/PhabricatorAuditEditor.php b/src/applications/audit/editor/PhabricatorAuditEditor.php index 825f56cae6..95656d7202 100644 --- a/src/applications/audit/editor/PhabricatorAuditEditor.php +++ b/src/applications/audit/editor/PhabricatorAuditEditor.php @@ -22,7 +22,12 @@ final class PhabricatorAuditEditor if (isset($this->auditReasonMap[$phid])) { return $this->auditReasonMap[$phid]; } - return array('Added by '.$this->getActor()->getUsername().'.'); + if ($this->getIsHeraldEditor()) { + $name = 'herald'; + } else { + $name = $this->getActor()->getUsername(); + } + return array('Added by '.$name.'.'); } public function setRawPatch($patch) { diff --git a/src/applications/repository/storage/PhabricatorRepositoryCommit.php b/src/applications/repository/storage/PhabricatorRepositoryCommit.php index 159177c8e9..eab247497f 100644 --- a/src/applications/repository/storage/PhabricatorRepositoryCommit.php +++ b/src/applications/repository/storage/PhabricatorRepositoryCommit.php @@ -59,6 +59,7 @@ final class PhabricatorRepositoryCommit $this->getTableName(), $flag, $this->getID()); + $this->setImportStatus($this->getImportStatus() | $flag); return $this; }