mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Merge pull request #1044 from M-Zuber/IRepositoriesClient.RepositoryComments_Deplurize
IRepositoriesClient.RepositoryComments -> IRepositoriesClient.Comment
This commit is contained in:
@@ -141,8 +141,17 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
[Obsolete("Comment information is now available under the Comment property. This will be removed in a future update.")]
|
||||
IObservableRepositoryCommentsClient RepositoryComments { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for GitHub's Repository Comments API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
IObservableRepositoryCommentsClient Comment { get; }
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Hooks API.
|
||||
/// </summary>
|
||||
|
||||
@@ -29,7 +29,10 @@ namespace Octokit.Reactive
|
||||
Deployment = new ObservableDeploymentsClient(client);
|
||||
Statistics = new ObservableStatisticsClient(client);
|
||||
PullRequest = new ObservablePullRequestsClient(client);
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
RepositoryComments = new ObservableRepositoryCommentsClient(client);
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
Comment = new ObservableRepositoryCommentsClient(client);
|
||||
Commits = new ObservableRepositoryCommitsClient(client);
|
||||
DeployKeys = new ObservableRepositoryDeployKeysClient(client);
|
||||
Content = new ObservableRepositoryContentsClient(client);
|
||||
@@ -213,8 +216,17 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
[Obsolete("Comment information is now available under the Comment property. This will be removed in a future update.")]
|
||||
public IObservableRepositoryCommentsClient RepositoryComments { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for GitHub's Repository Comments API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public IObservableRepositoryCommentsClient Comment { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Hooks API.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Octokit.Reactive
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, "client");
|
||||
|
||||
_client = client.Repository.RepositoryComments;
|
||||
_client = client.Repository.Comment;
|
||||
_connection = client.Connection;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public class PullRequestsClientTests : IDisposable
|
||||
_github = Helper.GetAuthenticatedClient();
|
||||
|
||||
_fixture = _github.Repository.PullRequest;
|
||||
_repositoryCommentsClient = _github.Repository.RepositoryComments;
|
||||
_repositoryCommentsClient = _github.Repository.Comment;
|
||||
|
||||
_context = _github.CreateRepositoryContext("source-repo").Result;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,17 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
[System.Obsolete("Comment information is now available under the Comment property. This will be removed in a future update.")]
|
||||
IRepositoryCommentsClient RepositoryComments { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for managing commit comments in a repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
IRepositoryCommentsClient Comment { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for managing deploy keys in a repository.
|
||||
/// </summary>
|
||||
|
||||
@@ -32,7 +32,10 @@ namespace Octokit
|
||||
Statistics = new StatisticsClient(apiConnection);
|
||||
Deployment = new DeploymentsClient(apiConnection);
|
||||
PullRequest = new PullRequestsClient(apiConnection);
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
RepositoryComments = new RepositoryCommentsClient(apiConnection);
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
Comment = new RepositoryCommentsClient(apiConnection);
|
||||
Commits = new RepositoryCommitsClient(apiConnection);
|
||||
DeployKeys = new RepositoryDeployKeysClient(apiConnection);
|
||||
Merging = new MergingClient(apiConnection);
|
||||
@@ -386,8 +389,17 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
[Obsolete("Comment information is now available under the Comment property. This will be removed in a future update.")]
|
||||
public IRepositoryCommentsClient RepositoryComments { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for managing commit comments in a repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/comments/">Repository Comments API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public IRepositoryCommentsClient Comment { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for managing deploy keys in a repository.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user