Open itaditya opened 5 years ago
I like to do it.
In order to fetch all the teams of the GitHub org, /api/reviewers
should list teams so I added appropriate code and raised PR in pr-train-api-server
repo https://github.com/itaditya/pr-train-api-server/pull/1
Great start @IsAmrish. Will you also add the UI code to select from dropdown here?
Currently the GitHub team slug is provided via query params. The few benefits it has are - a) once you visit the URL, the browser will autocomplete next time. b) was very easy to implement.
The downside is when user doesn't provide any query param, the page shows up blank. What we should do is fetch all the teams of the GitHub org and then ask user to select one team via a dropdown.