mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Team description added to Team.py (#753)
* team description added to Team.py * minor correction on initAttributes
This commit is contained in:
@@ -83,6 +83,14 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._name)
|
||||
return self._name.value
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._description)
|
||||
return self.description.value
|
||||
|
||||
@property
|
||||
def permission(self):
|
||||
"""
|
||||
@@ -317,6 +325,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
self._members_count = github.GithubObject.NotSet
|
||||
self._members_url = github.GithubObject.NotSet
|
||||
self._name = github.GithubObject.NotSet
|
||||
self._description = github.GithubObject.NotSet
|
||||
self._permission = github.GithubObject.NotSet
|
||||
self._repos_count = github.GithubObject.NotSet
|
||||
self._repositories_url = github.GithubObject.NotSet
|
||||
@@ -333,6 +342,8 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
self._members_url = self._makeStringAttribute(attributes["members_url"])
|
||||
if "name" in attributes: # pragma no branch
|
||||
self._name = self._makeStringAttribute(attributes["name"])
|
||||
if "description" in attributes: # pragma no branch
|
||||
self._description = self._makeStringAttribute(attributes["description"])
|
||||
if "permission" in attributes: # pragma no branch
|
||||
self._permission = self._makeStringAttribute(attributes["permission"])
|
||||
if "repos_count" in attributes: # pragma no branch
|
||||
|
||||
Reference in New Issue
Block a user