removed <returns> tags

This commit is contained in:
aedampir@gmail.com
2016-06-29 01:44:34 +07:00
parent f8eebd814e
commit b79e4e5e38
4 changed files with 0 additions and 64 deletions

View File

@@ -18,7 +18,6 @@ namespace Octokit.Reactive
/// <param name="owner">The repository's owner</param>
/// <param name="name">The repository's name</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> GetAll(string owner, string name);
/// <summary>
@@ -26,7 +25,6 @@ namespace Octokit.Reactive
/// </summary>
/// <param name="repositoryId">The repository's ID</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> GetAll(int repositoryId);
/// <summary>
@@ -36,7 +34,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> GetAll(string owner, string name, ApiOptions options);
/// <summary>
@@ -45,7 +42,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> GetAll(int repositoryId, ApiOptions options);
/// <summary>
@@ -55,7 +51,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")]
IObservable<RepositoryHook> Get(string owner, string name, int hookId);
@@ -65,7 +60,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")]
IObservable<RepositoryHook> Get(int repositoryId, int hookId);
@@ -76,7 +70,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> Create(string owner, string name, NewRepositoryHook hook);
/// <summary>
@@ -85,7 +78,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook);
/// <summary>
@@ -96,7 +88,6 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> Edit(string owner, string name, int hookId, EditRepositoryHook hook);
/// <summary>
@@ -106,7 +97,6 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook);
/// <summary>
@@ -118,7 +108,6 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
IObservable<Unit> Test(string owner, string name, int hookId);
/// <summary>
@@ -129,7 +118,6 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
IObservable<Unit> Test(int repositoryId, int hookId);
/// <summary>
@@ -139,7 +127,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<Unit> Ping(string owner, string name, int hookId);
/// <summary>
@@ -148,7 +135,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<Unit> Ping(int repositoryId, int hookId);
/// <summary>
@@ -158,7 +144,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int hookId);
/// <summary>
@@ -167,7 +152,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
IObservable<Unit> Delete(int repositoryId, int hookId);
}
}

View File

@@ -30,7 +30,6 @@ namespace Octokit.Reactive
/// <param name="owner">The repository's owner</param>
/// <param name="name">The repository's name</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> GetAll(string owner, string name)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -44,7 +43,6 @@ namespace Octokit.Reactive
/// </summary>
/// <param name="repositoryId">The repository's ID</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> GetAll(int repositoryId)
{
return GetAll(repositoryId, ApiOptions.None);
@@ -57,7 +55,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> GetAll(string owner, string name, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -73,7 +70,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> GetAll(int repositoryId, ApiOptions options)
{
Ensure.ArgumentNotNull(options, "options");
@@ -88,7 +84,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Get(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -103,7 +98,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Get(int repositoryId, int hookId)
{
return _client.Get(repositoryId, hookId).ToObservable();
@@ -116,7 +110,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Create(string owner, string name, NewRepositoryHook hook)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -132,7 +125,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook)
{
Ensure.ArgumentNotNull(hook, "hook");
@@ -148,7 +140,6 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Edit(string owner, string name, int hookId, EditRepositoryHook hook)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -165,7 +156,6 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook)
{
Ensure.ArgumentNotNull(hook, "hook");
@@ -182,7 +172,6 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
public IObservable<Unit> Test(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -199,7 +188,6 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
public IObservable<Unit> Test(int repositoryId, int hookId)
{
return _client.Test(repositoryId, hookId).ToObservable();
@@ -212,7 +200,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<Unit> Ping(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -227,7 +214,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<Unit> Ping(int repositoryId, int hookId)
{
return _client.Ping(repositoryId, hookId).ToObservable();
@@ -240,7 +226,6 @@ namespace Octokit.Reactive
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<Unit> Delete(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -255,7 +240,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public IObservable<Unit> Delete(int repositoryId, int hookId)
{
return _client.Delete(repositoryId, hookId).ToObservable();

View File

@@ -18,7 +18,6 @@ namespace Octokit
/// <param name="owner">The repository's owner</param>
/// <param name="name">The repository's name</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<IReadOnlyList<RepositoryHook>> GetAll(string owner, string name);
/// <summary>
@@ -26,7 +25,6 @@ namespace Octokit
/// </summary>
/// <param name="repositoryId">The repository's ID</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<IReadOnlyList<RepositoryHook>> GetAll(int repositoryId);
/// <summary>
@@ -36,7 +34,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<IReadOnlyList<RepositoryHook>> GetAll(string owner, string name, ApiOptions options);
/// <summary>
@@ -45,7 +42,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<IReadOnlyList<RepositoryHook>> GetAll(int repositoryId, ApiOptions options);
/// <summary>
@@ -55,7 +51,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keywords")]
Task<RepositoryHook> Get(string owner, string name, int hookId);
@@ -65,7 +60,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keywords")]
Task<RepositoryHook> Get(int repositoryId, int hookId);
@@ -76,7 +70,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<RepositoryHook> Create(string owner, string name, NewRepositoryHook hook);
/// <summary>
@@ -85,7 +78,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook);
/// <summary>
@@ -96,7 +88,6 @@ namespace Octokit
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<RepositoryHook> Edit(string owner, string name, int hookId, EditRepositoryHook hook);
/// <summary>
@@ -106,7 +97,6 @@ namespace Octokit
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook);
/// <summary>
@@ -118,7 +108,6 @@ namespace Octokit
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
Task Test(string owner, string name, int hookId);
/// <summary>
@@ -129,7 +118,6 @@ namespace Octokit
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
Task Test(int repositoryId, int hookId);
/// <summary>
@@ -139,7 +127,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task Ping(string owner, string name, int hookId);
/// <summary>
@@ -148,7 +135,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task Ping(int repositoryId, int hookId);
/// <summary>
@@ -158,7 +144,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task Delete(string owner, string name, int hookId);
/// <summary>
@@ -167,7 +152,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
Task Delete(int repositoryId, int hookId);
}
}

View File

@@ -26,7 +26,6 @@ namespace Octokit
/// <param name="owner">The repository's owner</param>
/// <param name="name">The repository's name</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<IReadOnlyList<RepositoryHook>> GetAll(string owner, string name)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -40,7 +39,6 @@ namespace Octokit
/// </summary>
/// <param name="repositoryId">The repository's ID</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<IReadOnlyList<RepositoryHook>> GetAll(int repositoryId)
{
return GetAll(repositoryId, ApiOptions.None);
@@ -53,7 +51,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<IReadOnlyList<RepositoryHook>> GetAll(string owner, string name, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -69,7 +66,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<IReadOnlyList<RepositoryHook>> GetAll(int repositoryId, ApiOptions options)
{
Ensure.ArgumentNotNull(options, "options");
@@ -84,7 +80,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Get(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -99,7 +94,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Get(int repositoryId, int hookId)
{
return ApiConnection.Get<RepositoryHook>(ApiUrls.RepositoryHookById(repositoryId, hookId));
@@ -112,7 +106,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Create(string owner, string name, NewRepositoryHook hook)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -128,7 +121,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook)
{
Ensure.ArgumentNotNull(hook, "hook");
@@ -144,7 +136,6 @@ namespace Octokit
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Edit(string owner, string name, int hookId, EditRepositoryHook hook)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -161,7 +152,6 @@ namespace Octokit
/// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook)
{
Ensure.ArgumentNotNull(hook, "hook");
@@ -178,7 +168,6 @@ namespace Octokit
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
public Task Test(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -195,7 +184,6 @@ namespace Octokit
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
/// <returns></returns>
public Task Test(int repositoryId, int hookId)
{
return ApiConnection.Post(ApiUrls.RepositoryHookTest(repositoryId, hookId));
@@ -208,7 +196,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task Ping(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -223,7 +210,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task Ping(int repositoryId, int hookId)
{
return ApiConnection.Post(ApiUrls.RepositoryHookPing(repositoryId, hookId));
@@ -236,7 +222,6 @@ namespace Octokit
/// <param name="name">The repository's name</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task Delete(string owner, string name, int hookId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -251,7 +236,6 @@ namespace Octokit
/// <param name="repositoryId">The repository's ID</param>
/// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
/// <returns></returns>
public Task Delete(int repositoryId, int hookId)
{
return ApiConnection.Delete(ApiUrls.RepositoryHookById(repositoryId, hookId));