| Total Complexity | 1 | 
| Total Lines | 8 | 
| Duplicated Lines | 0 % | 
| 1 | from lib.base import BaseGithubAction | ||
| 9 | class AddTeamMembershipAction(BaseGithubAction): | ||
| 10 | def run(self, organization, team, user): | ||
| 11 | user = self._client.get_user(user) | ||
| 12 | organization = self._client.get_organization(organization) | ||
| 13 | team = organization.get_team(int(team)) | ||
| 14 | team.add_membership(member=user) | ||
| 15 | result = user_to_dict(user=user) | ||
| 16 | return result | ||
| 17 |