Skip to content

🚀[Feature]: Create organization invitations, list organization members #100

@ThePoShWolf

Description

@ThePoShWolf

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions