lib/GitHub/Receiver/Repositories/Deployments.php
public function createDeploymentStatus(int $id, string $state, string $targetUrl = '',
                                           string $description = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/deployments/:id/statuses',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_POST, [
                'state'       => $state,
                'target_url'  => $targetUrl,
                'description' => $description
            ]);
    }
public function createDeploymentStatus(int $id, string $state, string $targetUrl = '',
                                           string $description = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/deployments/:id/statuses',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_POST, [
                'state'       => $state,
                'target_url'  => $targetUrl,
                'description' => $description
            ]);
    }
public function createDeploymentStatus ( int $ id , string $ state , string $ targetUrl = '' , string $ description = '' ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/deployments/:id/statuses' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) , $ id ) , Request :: METHOD_POST , [ 'state' => $ state , 'target_url' => $ targetUrl , 'description' => $ description ] ) ; }
Create a Deployment Status

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

@param int    $id
@param string $state
@param string $targetUrl
@param string $description

@return array
Create a Deployment Status