8000 Add privacy attribute to Team objects · thebrid/github3.py@9a5dcf3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a5dcf3

Browse files
committed
Add privacy attribute to Team objects
Closes sigmavirus24#430
1 parent b65b13f commit 9a5dcf3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/github3/orgs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def _update_attributes(self, team):
2727
self.members_urlt = URITemplate(team["members_url"])
2828
self.name = team["name"]
2929
self.permission = team["permission"]
30+
self.privacy = team.get(
31+
"privacy"
32+
) # TODO: Re-record cassettes to ensure this exists
3033
self.repositories_url = team["repositories_url"]
3134
self.slug = team["slug"]
3235

@@ -302,6 +305,10 @@ class ShortTeam(_Team):
302305
The level of permissions this team has, e.g., ``push``, ``pull``,
303306
or ``admin``.
304307
308+
.. attribute:: privacy
309+
310+
The privacy level of this team inside the organization.
311+
305312
.. attribute:: repos_count
306313
307314
The number of repositories this team can access.

0 commit comments

Comments
 (0)
0