for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FlexyProject\GitHub\Receiver\Enterprise;
use Symfony\Component\HttpFoundation\Request;
/**
* The Search Indexing API allows you to queue up a variety of search indexing tasks.
*
* @link https://developer.github.com/v3/enterprise/search_indexing/
* @package GitHub\Receiver\Enterprise
*/
class SearchIndexing extends AbstractEnterprise
{
* Queue an indexing job
* @link https://developer.github.com/v3/enterprise/search_indexing/#queue-an-indexing-job
* @param string $target
* @return array
public function queueIndexingJob(string $target): array
return $this->getApi()->request(sprintf('/staff/indexing_jobs'), Request::METHOD_POST, [
'target' => $target
]);
}