Differential D12380 Diff 29771 src/applications/diffusion/conduit/DiffusionLookSoonConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionLookSoonConduitAPIMethod.php
Show All 12 Lines | final class DiffusionLookSoonConduitAPIMethod | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht( | return pht( | ||||
'Advises Phabricator to look for new commits in a repository as soon '. | 'Advises Phabricator to look for new commits in a repository as soon '. | ||||
'as possible. This advice is most useful if you have just pushed new '. | 'as possible. This advice is most useful if you have just pushed new '. | ||||
'commits to that repository.'); | 'commits to that repository.'); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'void'; | return 'void'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'callsigns' => 'required list<string>', | 'callsigns' => 'required list<string>', | ||||
'urgency' => 'optional string', | 'urgency' => 'optional string', | ||||
); | ); | ||||
} | } | ||||
public function defineErrorTypes() { | |||||
return array(); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
// NOTE: The "urgency" parameter does nothing, it is just a hilarious joke | // NOTE: The "urgency" parameter does nothing, it is just a hilarious joke | ||||
// which exemplifies the boundless clever wit of this project. | // which exemplifies the boundless clever wit of this project. | ||||
$callsigns = $request->getValue('callsigns'); | $callsigns = $request->getValue('callsigns'); | ||||
if (!$callsigns) { | if (!$callsigns) { | ||||
return null; | return null; | ||||
} | } | ||||
Show All 16 Lines |