From 980b67f9309b769c55fb7236a628db468f3d8d47 Mon Sep 17 00:00:00 2001 From: Manu Hortet Date: Tue, 17 Apr 2018 12:22:11 +0200 Subject: [PATCH] Team description added to Team.py (#753) * team description added to Team.py * minor correction on initAttributes --- github/Team.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/github/Team.py b/github/Team.py index 9fd98fa6..52e24a29 100644 --- a/github/Team.py +++ b/github/Team.py @@ -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