class Github::Orgs::Teams

def team_repo?(team_id, user_name, repo_name, params={})


github.orgs.teams.team_repo? 'team-id', 'user-name', 'repo-name'
github = Github.new :oauth_token => '...'
= Examples

Check if a repository belongs to a team
def team_repo?(team_id, user_name, repo_name, params={})
  assert_presence_of team_id, user_name, repo_name
  normalize! params
  get_request("/teams/#{team_id}/repos/#{user_name}/#{repo_name}", params)
  true
rescue Github::Error::NotFound
  false
end