Page MenuHomePhabricator
Diviner Phabricator Tech Docs DifferentialGitHubLandingStrategy

final class DifferentialGitHubLandingStrategy
Phabricator Technical Documentation (Differential)

This class is not documented.

Methods

public function processLandRequest($request, $revision, $repository)

This method is not documented.
Parameters
AphrontRequest$request
DifferentialRevision$revision
PhabricatorRepository$repository
Return
wild

public function createMenuItem($viewer, $revision, $repository)

Returns PhabricatorActionView or an array of PhabricatorActionView or null.

Parameters
PhabricatorUser$viewer
DifferentialRevision$revision
PhabricatorRepository$repository
Return
PhabricatorActionViewor null.

protected function createActionView($revision, $name)
Inherited

This method is not documented.
Parameters
$revision
$name
Return
PhabricatorActionViewwhich can be attached to the revision view.

public function isActionDisabled($viewer, $revision, $repository)
Inherited

DifferentialLandingStrategy

Check if this action should be disabled, and explain why.

By default, this method checks for push permissions, and for the revision being Accepted.

Parameters
PhabricatorUser$viewer
DifferentialRevision$revision
PhabricatorRepository$repository
Return
Falsefor "not disabled"; human-readable text explaining why, if it is disabled.

protected function getGitWorkspace($repository)
Inherited

DifferentialLandingStrategy

Might break if repository is not Git.

Parameters
PhabricatorRepository$repository
Return
wild

protected function getMercurialWorkspace($repository)
Inherited

DifferentialLandingStrategy

Might break if repository is not Mercurial.

Parameters
PhabricatorRepository$repository
Return
wild

public function pushWorkspaceRepository($repository, $workspace)

This method is not documented.
Parameters
PhabricatorRepository$repository
ArcanistRepositoryAPI$workspace
Return
wild

private function init($viewer, $repository)

This method is not documented.
Parameters
$viewer
$repository
Return
wild

private function findGitHubRepo($repository)

This method is not documented.
Parameters
PhabricatorRepository$repository
Return
wild

private function getAccessToken()

This method is not documented.
Return
wild

private function verifyRemotePermissions($viewer, $revision, $repository)

This method is not documented.
Parameters
$viewer
$revision
$repository
Return
wild