Team

class github.Team.Team

This class represents Teams. The reference can be found here http://developer.github.com/v3/orgs/teams/

id
Type:integer
members_count
Type:integer
members_url
Type:string
name
Type:string
description
Type:string
permission
Type:string
repos_count
Type:integer
repositories_url
Type:string
slug
Type:string
url
Type:string
organization
Type:github.Organization.Organization
privacy
Type:string
add_to_members(member)

This API call is deprecated. Use add_membership instead. https://developer.github.com/v3/teams/members/#deprecation-notice-1

Calls:PUT /teams/:id/members/:user
Parameters:membergithub.NamedUser.NamedUser
Return type:None
add_membership(member, role=NotSet)
Calls:

PUT /teams/:id/memberships/:user

Parameters:
  • membergithub.Nameduser.NamedUser
  • role – string
Return type:

None

add_to_repos(repo)
Calls:PUT /teams/:id/repos/:org/:repo
Parameters:repogithub.Repository.Repository
Return type:None
set_repo_permission(repo, permission)
Calls:

PUT /teams/:id/repos/:org/:repo

Parameters:
Return type:

None

delete()
Calls:DELETE /teams/:id
Return type:None
edit(name, description=NotSet, permission=NotSet, privacy=NotSet)
Calls:

PATCH /teams/:id

Parameters:
  • name – string
  • description – string
  • permission – string
  • privacy – string
Return type:

None

get_members(role=NotSet)
Calls:GET /teams/:id/members
Parameters:role – string
Return type:github.PaginatedList.PaginatedList of github.NamedUser.NamedUser
get_repos()
Calls:GET /teams/:id/repos
Return type:github.PaginatedList.PaginatedList of github.Repository.Repository
has_in_members(member)
Calls:GET /teams/:id/members/:user
Parameters:membergithub.NamedUser.NamedUser
Return type:bool
has_in_repos(repo)
Calls:GET /teams/:id/repos/:owner/:repo
Parameters:repogithub.Repository.Repository
Return type:bool
remove_membership(member)
Calls:DELETE /teams/:team_id/memberships/:username <https://developer.github.com/v3/teams/members/#remove-team-membership>
Parameters:member
Returns:
remove_from_members(member)

This API call is deprecated. Use remove_membership instead: https://developer.github.com/v3/teams/members/#deprecation-notice-2

Calls:DELETE /teams/:id/members/:user
Parameters:membergithub.NamedUser.NamedUser
Return type:None
remove_from_repos(repo)
Calls:DELETE /teams/:id/repos/:owner/:repo
Parameters:repogithub.Repository.Repository
Return type:None