mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
address code analysis issue
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
|
||||
/// <returns></returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")]
|
||||
IObservable<IReadOnlyList<RepositoryHook>> Get(string owner, string repositoryName);
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -18,8 +18,7 @@ namespace Octokit.Reactive
|
||||
_client = client.Repository;
|
||||
_connection = client.Connection;
|
||||
CommitStatus = new ObservableCommitStatusClient(client);
|
||||
var apiConnection = new ApiConnection(_connection);
|
||||
Hooks = new RepositoryHooksClient(apiConnection);
|
||||
Hooks = new ObservableRepositoryHooksClient(client);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -115,7 +114,7 @@ namespace Octokit.Reactive
|
||||
/// <summary>
|
||||
/// Gets a client for GitHub's Repository Hooks
|
||||
/// </summary>
|
||||
public IRepositoryHooksClient Hooks
|
||||
public IObservableRepositoryHooksClient Hooks
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user