lib/GitHub/Receiver/Repositories/Merging.php
public function performMerge(string $base, string $head, string $commitMessage = null): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/merges',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()), Request::METHOD_POST, [
                'base'           => $base,
                'head'           => $head,
                'commit_message' => $commitMessage
            ]);
    }
public function performMerge(string $base, string $head, string $commitMessage = null): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/merges',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()), Request::METHOD_POST, [
                'base'           => $base,
                'head'           => $head,
                'commit_message' => $commitMessage
            ]);
    }
public function performMerge ( string $ base , string $ head , string $ commitMessage = null ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/merges' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) ) , Request :: METHOD_POST , [ 'base' => $ base , 'head' => $ head , 'commit_message' => $ commitMessage ] ) ; }
Perform a merge

@link https://developer.github.com/v3/repos/merging/#perform-a-merge

@param string      $base
@param string      $head
@param string|null $commitMessage

@return array
Perform a merge