lib/Github/Api/GitData/References.php
public function update($username, $repository, $reference, array $params)
    {
        if (!isset($params['sha'])) {
            throw new MissingArgumentException('sha');
        }

        $reference = $this->encodeReference($reference);

        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/'.$reference, $params);
    }
public function update($username, $repository, $reference, array $params)
    {
        if (!isset($params['sha'])) {
            throw new MissingArgumentException('sha');
        }

        $reference = $this->encodeReference($reference);

        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/'.$reference, $params);
    }
public function update ( $ username , $ repository , $ reference , array $ params ) { if ( ! isset ( $ params [ 'sha' ] ) ) { throw new MissingArgumentException ( 'sha' ) ; } $ reference = $ this -> encodeReference ( $ reference ) ; return $ this -> patch ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/git/refs/' . $ reference , $ params ) ; }
Update a reference for a repository.

@param string $username
@param string $repository
@param string $reference
@param array  $params

@throws \Github\Exception\MissingArgumentException

@return array
Update a reference for a repository .