Description
I would love to use this module to invite users to GitHub organizations and be able to list members to check before sending.
Here's how you can list members:
Invoke-GitHubAPI -Method Get -ApiEndpoint /orgs/<org>/members
And how to send an invite:
$splat = @{
Method = 'Post'
ApiEndpoint = '/orgs/<org>/invitations'
Body = @{
invitee_id = 'githubusername'
role = 'direct_member'
} | ConvertTo-Json -Compress
ContentType = 'application/json'
}
Invoke-GitHubAPI @splat
I intend to fork, make the changes, and submit a PR for your review.