Differential D13022 Diff 31406 src/applications/differential/landing/DifferentialGitHubLandingStrategy.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/landing/DifferentialGitHubLandingStrategy.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | final class DifferentialGitHubLandingStrategy | ||||
/** | /** | ||||
* Returns PhabricatorActionView or an array of PhabricatorActionView or null. | * Returns PhabricatorActionView or an array of PhabricatorActionView or null. | ||||
*/ | */ | ||||
public function createMenuItem( | public function createMenuItem( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
DifferentialRevision $revision, | DifferentialRevision $revision, | ||||
PhabricatorRepository $repository) { | PhabricatorRepository $repository) { | ||||
// TODO: This temporarily disables this action, because it doesn't work | |||||
// and is confusing to users. If you want to use it, comment out this line | |||||
// for now and we'll provide real support eventually. | |||||
return; | |||||
$vcs = $repository->getVersionControlSystem(); | $vcs = $repository->getVersionControlSystem(); | ||||
if ($vcs !== PhabricatorRepositoryType::REPOSITORY_TYPE_GIT) { | if ($vcs !== PhabricatorRepositoryType::REPOSITORY_TYPE_GIT) { | ||||
return; | return; | ||||
} | } | ||||
if ($repository->isHosted()) { | if ($repository->isHosted()) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |