'optional list (deprecated)', 'repositories' => 'optional list', 'urgency' => 'optional string', ); } protected function execute(ConduitAPIRequest $request) { // NOTE: The "urgency" parameter does nothing, it is just a hilarious joke // which exemplifies the boundless clever wit of this project. $identifiers = $request->getValue('repositories'); if (!$identifiers) { $identifiers = $request->getValue('callsigns'); } if (!$identifiers) { return null; } $repositories = id(new PhabricatorRepositoryQuery()) ->setViewer($request->getUser()) ->withIdentifiers($identifiers) ->execute(); foreach ($repositories as $repository) { $repository->writeStatusMessage( PhabricatorRepositoryStatusMessage::TYPE_NEEDS_UPDATE, PhabricatorRepositoryStatusMessage::CODE_OKAY); } return null; } }