Conditions | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | from lib.base import BaseGithubAction |
||
10 | def run(self, organization, team_id, user): |
||
11 | user = self._client.get_user(user) |
||
12 | organization = self._client.get_organization(organization) |
||
13 | team = organization.get_team(team_id) |
||
14 | team.add_membership(member=user) |
||
15 | result = user_to_dict(user=user) |
||
16 | return result |
||
17 |