简体   繁体   中英

How do we add the members to the repo team in GitHub via Email Id

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

Is there any function(Octokit library) or API which will help to sent an invite using Email Id

On Octokit, apparently not.
octokit/octokit.net Octokit/Clients/RepoCollaboratorsClient.cs#Invite() methods alwats use a username, not email.

And it reflects the Add Collaborator API , which is also based on username.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM