mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
feat: Add create organization invitation via email (#2895)
* Add API request to create org invitation * Add tests for create org invitation * Add IObservable API request to create org invitation * Add tests for IObservable create org invitation
This commit is contained in:
@@ -304,6 +304,21 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembership> AddOrUpdateOrganizationMembership(string org, string user, OrganizationMembershipUpdate addOrUpdateRequest);
|
||||
|
||||
/// <summary>
|
||||
/// Create an organization invitation for a user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// The authenticated user must be an organization owner.
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/members/#create-an-organization-invitation">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The login for the organization</param>
|
||||
/// <param name="invitationRequest">An <see cref="OrganizationInvitationRequest"/> instance containing the
|
||||
/// details of the organization invitation</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> CreateOrganizationInvitation(string org, OrganizationInvitationRequest invitationRequest);
|
||||
|
||||
/// <summary>
|
||||
/// Remove a user's membership with an organization.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user