Affects Version/s: None
Fix Version/s: 8.4
Enable the user to see the list of repositories they have access to, by organisation.
The UI will require the user to select an organization first.
The list should handle pagination, and clearly flag repositories that have already been imported.
The user will be required to sign in to github and "authorize" the App (preinstalled by the instance admin, during binding configuration).
This requires a back-and-forth between SQ and Github. Github will provide a token, that the front-end forwards to the back-end when getting the list of orgs.
We use this temporary token to get an auth token from github, which is saved for later use: the repositories-fetching calls.
New API endpoints necessary:
Returns the client_id for the almSetting -> required to request the authorization of the GitHub App.
The "sqProjectKey" attribute indicates the project key on SQ, if it has already been imported.
Optionally takes a query param to search for repositories with matching names
Both will handle standard SQ pagination:
The "p" query parameter (for the page index), and