lib/Github/Api/Repository/Protection.php
public function updateStatusChecks($username, $repository, $branch, array $params = [])
    {
        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/branches/'.rawurlencode($branch).'/protection/required_status_checks', $params);
    }
public function updateStatusChecks($username, $repository, $branch, array $params = [])
    {
        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/branches/'.rawurlencode($branch).'/protection/required_status_checks', $params);
    }
public function updateStatusChecks ( $ username , $ repository , $ branch , array $ params = [ ] ) { return $ this -> patch ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/branches/' . rawurlencode ( $ branch ) . '/protection/required_status_checks' , $ params ) ; }
Update required status checks of protected branch.

@link https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch

@param string $username   The user who owns the repository
@param string $repository The name of the repo
@param string $branch     The name of the branch
@param array  $params     The branch status checks information

@return array The updated branch status checks information
Update required status checks of protected branch .