Netflix / hubcommander

A Slack bot for GitHub organization management -- and other things too
Apache License 2.0
1.28k stars 156 forks source link

Add `!ListTeams` github command #93

Open omerlh opened 6 years ago

omerlh commented 6 years ago

Some of the commands (for example, !CreateRepo, !SetRepoPermissions) require team parameters. It could help people to be able to list all teams or search for a team to find the team they needed.

mikegrima commented 6 years ago

The primary concern with this command is pagination. How big should the response be?

omerlh commented 6 years ago

I haven't thought about that, it is a challenge. We have ~20 teams, so the response could be big. What about starting with search and limiting results to the first 5 as first version? I guess this could be good enough, and no need to handle pagination.

omerlh commented 6 years ago

I haven't thought about that, it is a challenge. We have ~20 teams, so the response could be big. What about starting with search and limiting results to the first 5 as first version? I guess this could be good enough, and no need to handle pagination.