user invites: add backend to query invitable users
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: slimsag
I am working on a feature that will let you invite collaborators to your repositories while you wait for repositories to clone on Sourcegraph:
In order to identify collaborators we can invite, we need to use GitHub's API (we can't use our own, because the repositories are not yet cloned.) I've added this to our GitHub v4 GraphQL client, and exposed the data over GraphQL via a new ExternalService.invitableCollaborators
field.
I chose to use the GitHub API for enumerating committers (not the repository collaborator API) because:
To avoid imposing any additional load on our rate limits with the user's GitHub access token, we only query GitHub for 20 repositories out of those that you've chosen to add to Sourcegraph.
Push commits to the source branch or add previously merged commits to review them.