lib/Github/Api/Deployment.php
public function updateStatus($username, $repository, $id, array $params)
    {
        if (!isset($params['state'])) {
            throw new MissingArgumentException(['state']);
        }

        return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses', $params);
    }
public function updateStatus($username, $repository, $id, array $params)
    {
        if (!isset($params['state'])) {
            throw new MissingArgumentException(['state']);
        }

        return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses', $params);
    }
public function updateStatus ( $ username , $ repository , $ id , array $ params ) { if ( ! isset ( $ params [ 'state' ] ) ) { throw new MissingArgumentException ( [ 'state' ] ) ; } return $ this -> post ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/deployments/' . rawurlencode ( $ id ) . '/statuses' , $ params ) ; }
Updates a deployment by creating a new status update.

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

@param string $username   the username
@param string $repository the repository
@param int    $id         the deployment number
@param array  $params     The information about the deployment update.
Must include a "state" field of pending, success, error, or failure.
May also be given a target_url and description, ßee link for more details.

@throws MissingArgumentException

@return array information about the deployment
Updates a deployment by creating a new status update .