add support for organization web hooks (#1884)

This commit is contained in:
Martin Alex Philip Dawson
2020-06-07 20:53:20 +01:00
committed by GitHub
parent 62c0b1fe08
commit 8d3e7b3c2c
23 changed files with 1726 additions and 16 deletions
@@ -15,6 +15,12 @@ namespace Octokit.Reactive
/// </summary>
IObservableTeamsClient Team { get; }
/// <summary>
/// A client for GitHub's Organization Hooks API.
/// </summary>
/// <remarks>See <a href="http://developer.github.com/v3/orgs/hooks/">Hooks API documentation</a> for more information.</remarks>
IObservableOrganizationHooksClient Hook { get; }
/// <summary>
/// Returns a client to manage outside collaborators of an organization.
/// </summary>
@@ -77,10 +83,10 @@ namespace Octokit.Reactive
/// <summary>
/// Update the specified organization with data from <see cref="OrganizationUpdate"/>.
/// </summary>
/// <param name="organizationName">The name of the organization to update.</param>
/// <param name="org">The name of the organization to update.</param>
/// <param name="updateRequest"></param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
/// <returns>A <see cref="Organization"/></returns>
IObservable<Organization> Update(string organizationName, OrganizationUpdate updateRequest);
IObservable<Organization> Update(string org, OrganizationUpdate updateRequest);
}
}