Team¶
-
class
github.Team.
Team
¶ This class represents Teams.
The reference can be found here https://docs.github.com/en/rest/reference/teams
-
add_to_members
(member: NamedUser) → None¶ This API call is deprecated. Use add_membership instead. https://docs.github.com/en/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy
-
add_membership
(member: NamedUser, role: Opt[str] = NotSet) → None¶
-
get_team_membership
(member: str | NamedUser) → Membership¶
-
add_to_repos
(repo: Repository) → None¶
-
get_repo_permission
(repo: Repository) → Permissions | None¶
-
set_repo_permission
(repo: Repository, permission: str) → None¶ - Calls
- Parameters
repo –
github.Repository.Repository
permission – string
- Return type
None
-
update_team_repository
(repo: Repository, permission: str) → bool¶
-
delete
() → None¶ - Calls
-
edit
(name: str, description: Union[str, github.GithubObject._NotSetType] = NotSet, permission: Union[str, github.GithubObject._NotSetType] = NotSet, privacy: Union[str, github.GithubObject._NotSetType] = NotSet, parent_team_id: Union[int, github.GithubObject._NotSetType] = NotSet, notification_setting: Union[str, github.GithubObject._NotSetType] = NotSet) → None¶ - Calls
-
get_teams
() → PaginatedList[Team]¶ - Calls
-
get_discussions
() → PaginatedList[TeamDiscussion]¶
-
get_members
(role: Opt[str] = NotSet) → PaginatedList[NamedUser]¶ - Calls
-
get_repos
() → PaginatedList[Repository]¶ - Calls
-
invitations
() → PaginatedList[NamedUser]¶
-
has_in_members
(member: NamedUser) → bool¶
-
has_in_repos
(repo: Repository) → bool¶
-
remove_membership
(member: NamedUser) → None¶
-
remove_from_members
(member: NamedUser) → None¶ This API call is deprecated. Use remove_membership instead: https://docs.github.com/en/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy
-
remove_from_repos
(repo: Repository) → None¶
-