Differential D8471 Diff 20124 src/applications/releeph/differential/DifferentialReleephRequestFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/differential/DifferentialReleephRequestFieldSpecification.php
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | final class DifferentialReleephRequestFieldSpecification | ||||
public function shouldAppearOnCommitMessageTemplate() { | public function shouldAppearOnCommitMessageTemplate() { | ||||
return false; | return false; | ||||
} | } | ||||
public function didParseCommit(PhabricatorRepository $repo, | public function didParseCommit(PhabricatorRepository $repo, | ||||
PhabricatorRepositoryCommit $commit, | PhabricatorRepositoryCommit $commit, | ||||
PhabricatorRepositoryCommitData $data) { | PhabricatorRepositoryCommitData $data) { | ||||
// NOTE: This is currently dead code. See T2222. | |||||
$releeph_requests = $this->loadReleephRequests(); | $releeph_requests = $this->loadReleephRequests(); | ||||
if (!$releeph_requests) { | if (!$releeph_requests) { | ||||
return; | return; | ||||
} | } | ||||
$releeph_branch = head($releeph_requests)->loadReleephBranch(); | $releeph_branch = head($releeph_requests)->loadReleephBranch(); | ||||
if (!$this->isCommitOnBranch($repo, $commit, $releeph_branch)) { | if (!$this->isCommitOnBranch($repo, $commit, $releeph_branch)) { | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |