Method: Github::Client::Repos#teams

Defined in:
lib/github_api/client/repos.rb

#teams(*args) ⇒ Object Also known as: list_teams, repo_teams, repository_teams

List teams

Examples:

github = Github.new
github.repos.teams 'user-name', 'repo-name'
github.repos.teams 'user-name', 'repo-name' { |team| ... }
github.repos(user: 'user-name, repo: 'repo-name').teams


462
463
464
465
466
467
468
# File 'lib/github_api/client/repos.rb', line 462

def teams(*args)
  arguments(args, required: [:user, :repo])

  response = get_request("/repos/#{arguments.user}/#{arguments.repo}/teams", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end