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