addDescription('Test AI Review'); } public function execute() { $services = MediaWikiServices::getInstance(); $entryFactory = $services->getService('Moderation.EntryFactory'); $robotUser = $services->getUserFactory()->newFromId(1); $approveEntry = $entryFactory->findApprovableEntry(1228); $approveEntry->approve($robotUser); return true; } } $maintClass = TryAIReview::class; require_once RUN_MAINTENANCE_IF_MAIN;