| Total Complexity | 2 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| 1 | from lib.base import BaseGithubAction |
||
| 9 | class ListTeamsAction(BaseGithubAction): |
||
| 10 | def run(self, organization): |
||
| 11 | organization = self._client.get_organization(organization) |
||
| 12 | teams = organization.get_teams() |
||
| 13 | result = [] |
||
| 14 | for team in teams: |
||
| 15 | team = team_to_dict(team=team) |
||
| 16 | result.append(team) |
||
| 17 | |||
| 18 | return result |
||
| 19 |