Skip to content

Commit

Permalink
Add privacy attribute to Team objects
Browse files Browse the repository at this point in the history
Closes #430
  • Loading branch information
sigmavirus24 committed Nov 1, 2021
1 parent b65b13f commit 9a5dcf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/github3/orgs.py
Expand Up @@ -27,6 +27,9 @@ def _update_attributes(self, team):
self.members_urlt = URITemplate(team["members_url"])
self.name = team["name"]
self.permission = team["permission"]
self.privacy = team.get(
"privacy"
) # TODO: Re-record cassettes to ensure this exists
self.repositories_url = team["repositories_url"]
self.slug = team["slug"]

Expand Down Expand Up @@ -302,6 +305,10 @@ class ShortTeam(_Team):
The level of permissions this team has, e.g., ``push``, ``pull``,
or ``admin``.
.. attribute:: privacy
The privacy level of this team inside the organization.
.. attribute:: repos_count
The number of repositories this team can access.
Expand Down

0 comments on commit 9a5dcf3

Please sign in to comment.