lib/GitHub/Receiver/Organizations/Teams.php
public function addTeamRepository(int $id)
    {
        $return = $this->getApi()->request($this->getApi()->sprintf('/teams/:id/repos/:org/:repo', (string)$id,
            $this->getOrganizations()->getOwner(), $this->getOrganizations()->getRepo()), Request::METHOD_PUT);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return $return;
    }
public function addTeamRepository(int $id)
    {
        $return = $this->getApi()->request($this->getApi()->sprintf('/teams/:id/repos/:org/:repo', (string)$id,
            $this->getOrganizations()->getOwner(), $this->getOrganizations()->getRepo()), Request::METHOD_PUT);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return $return;
    }
public function addTeamRepository ( int $ id ) { $ return = $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/teams/:id/repos/:org/:repo' , ( string ) $ id , $ this -> getOrganizations ( ) -> getOwner ( ) , $ this -> getOrganizations ( ) -> getRepo ( ) ) , Request :: METHOD_PUT ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return $ return ; }
Add team repository

@link https://developer.github.com/v3/orgs/teams/#add-team-repo

@param int $id

@return bool|array
@throws \Exception
Add team repository