class Github::Orgs::Teams
def add_repo(team_id, user_name, repo_name, params={})
github.orgs.teams.add_repo 'team-id', 'user-name', 'repo-name'
github = Github.new :oauth_token => '...'
= Examples
by the organization.
must be owned by the organization, or a direct for of a repo owned
an owner of the org that the team is associated with. Also, the repo
In order to add a repo to a team, the authenticated user must be
Add a team repository
def add_repo(team_id, user_name, repo_name, params={}) assert_presence_of team_id, user_name, repo_name normalize! params put_request("/teams/#{team_id}/repos/#{user_name}/#{repo_name}", params) end