Differential D19993 Diff 47731 src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | private function sendMail( | ||||
if ($commit_lines) { | if ($commit_lines) { | ||||
$body->addTextSection(pht('COMMITS'), implode("\n", $commit_lines)); | $body->addTextSection(pht('COMMITS'), implode("\n", $commit_lines)); | ||||
} | } | ||||
if ($ref_lines) { | if ($ref_lines) { | ||||
$body->addTextSection(pht('REFERENCES'), implode("\n", $ref_lines)); | $body->addTextSection(pht('REFERENCES'), implode("\n", $ref_lines)); | ||||
} | } | ||||
$prefix = PhabricatorEnv::getEnvConfig('metamta.diffusion.subject-prefix'); | $prefix = pht('[Diffusion]'); | ||||
$parts = array(); | $parts = array(); | ||||
if ($commit_count) { | if ($commit_count) { | ||||
$parts[] = pht('%s commit(s)', $commit_count); | $parts[] = pht('%s commit(s)', $commit_count); | ||||
} | } | ||||
if ($ref_count) { | if ($ref_count) { | ||||
$parts[] = implode(', ', $ref_list); | $parts[] = implode(', ', $ref_list); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |