lib/GitHub/Receiver/GitData/References.php
public function update(string $ref, string $sha, bool $force = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/git/refs/:ref',
            $this->getGitData()->getOwner(), $this->getGitData()->getRepo(), $ref), Request::METHOD_POST, [
                'sha'   => $sha,
                'force' => $force
            ]);
    }
public function update(string $ref, string $sha, bool $force = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/git/refs/:ref',
            $this->getGitData()->getOwner(), $this->getGitData()->getRepo(), $ref), Request::METHOD_POST, [
                'sha'   => $sha,
                'force' => $force
            ]);
    }
public function update ( string $ ref , string $ sha , bool $ force = false ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/git/refs/:ref' , $ this -> getGitData ( ) -> getOwner ( ) , $ this -> getGitData ( ) -> getRepo ( ) , $ ref ) , Request :: METHOD_POST , [ 'sha' => $ sha , 'force' => $ force ] ) ; }
Update a Reference

@link https://developer.github.com/v3/git/refs/#update-a-reference

@param string $ref
@param string $sha
@param bool   $force

@return array
@throws \Exception
Update a Reference