I want to sent an invite to GitHub user to join any particular team in any Organization based on email id.
Currently, I am able to sent an invite for same but using GitHub Username using Octokit Library method
AddOrEditMembership(id, name, role)
Is there any function(Octokit library) or API which will help to sent an invite using Email Id
On Octokit, apparently not.
octokit/octokit.netOctokit/Clients/RepoCollaboratorsClient.cs#Invite()methods alwats use a username, not email.And it reflects the Add Collaborator API, which is also based on username.