Minor, fix an issue in Diffusion/Herald with commits that have no Auditors.
This commit is contained in:
@@ -222,7 +222,7 @@ final class PhabricatorRepositoryCommitHeraldWorker
|
|||||||
|
|
||||||
$matches = null;
|
$matches = null;
|
||||||
if (!preg_match('/^Auditors:\s*(.*)$/im', $message, $matches)) {
|
if (!preg_match('/^Auditors:\s*(.*)$/im', $message, $matches)) {
|
||||||
return;
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$phids = DifferentialFieldSpecification::parseCommitMessageObjectList(
|
$phids = DifferentialFieldSpecification::parseCommitMessageObjectList(
|
||||||
@@ -231,7 +231,7 @@ final class PhabricatorRepositoryCommitHeraldWorker
|
|||||||
$allow_partial = true);
|
$allow_partial = true);
|
||||||
|
|
||||||
if (!$phids) {
|
if (!$phids) {
|
||||||
return;
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$requests = id(new PhabricatorRepositoryAuditRequest())->loadAllWhere(
|
$requests = id(new PhabricatorRepositoryAuditRequest())->loadAllWhere(
|
||||||
|
|||||||
Reference in New Issue
Block a user