'Add ``repository`` to ``team``.
.. versionchanged:: 1.0
The second parameter used to be ``team`` but has been changed to
``team_id``. This parameter is now required to be an integer to
improve performance of this method.
:param str repository: (required), form: \'user/repo\'
:param int team_id: (required), team id
:returns: bool'

@requires_auth
def add_repository(self, repository, team_id):

    if (int(team_id) < 0):
        return False
    url = self._build_url(u'teams', str(team_id), u'repos', str(repository))
    return self._boolean(self._put(url), 204, 404)
