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

@link https://developer.github.com/v3/git/trees/#create-a-tree

@param array  $tree
@param string $base_tree

@return array
@throws \Exception
Create a Tree