lib/GitHub/Receiver/Repositories/DeployKeys.php
public function addNewDeployKey(string $title, string $key): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/keys', $this->getRepositories()->getOwner(),
                                                 $this->getRepositories()->getRepo()), Request::METHOD_POST, [
                'title' => $title,
                'key'   => $key
            ]);
    }
public function addNewDeployKey(string $title, string $key): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/keys', $this->getRepositories()->getOwner(),
                                                 $this->getRepositories()->getRepo()), Request::METHOD_POST, [
                'title' => $title,
                'key'   => $key
            ]);
    }
public function addNewDeployKey ( string $ title , string $ key ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/keys' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) ) , Request :: METHOD_POST , [ 'title' => $ title , 'key' => $ key ] ) ; }
Add a new deploy key

@link https://developer.github.com/v3/repos/keys/#create

@param string $title
@param string $key

@return array
Add a new deploy key