lib/GitHub/Receiver/Repositories/Statuses.php
public function createStatus(string $sha, string $state, string $targetUrl = null, string $description = null,
                                 string $context = 'default'): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/statuses/:sha',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $sha), Request::METHOD_POST, [
                'state'       => $state,
                'target_url'  => $targetUrl,
                'description' => $description,
                'context'     => $context
            ]);
    }
public function createStatus(string $sha, string $state, string $targetUrl = null, string $description = null,
                                 string $context = 'default'): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/statuses/:sha',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $sha), Request::METHOD_POST, [
                'state'       => $state,
                'target_url'  => $targetUrl,
                'description' => $description,
                'context'     => $context
            ]);
    }
public function createStatus ( string $ sha , string $ state , string $ targetUrl = null , string $ description = null , string $ context = 'default' ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/statuses/:sha' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) , $ sha ) , Request :: METHOD_POST , [ 'state' => $ state , 'target_url' => $ targetUrl , 'description' => $ description , 'context' => $ context ] ) ; }
Create a Status

@link https://developer.github.com/v3/repos/statuses/#create-a-status

@param string $sha
@param string $state
@param string $targetUrl
@param string $description
@param string $context

@return array
Create a Status