Netflix / hubcommander

A Slack bot for GitHub organization management -- and other things too

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `!ListTeams` github command

omerlh opened this issue · comments

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.

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

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.

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.