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

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

@param string $ref
@param string $sha

@return array
@throws \Exception
Create a Reference