Add Pull Request Comment "In Reply To" Field (#1715)

This commit is contained in:
Dillon Buchanan
2017-11-15 05:09:35 -05:00
committed by Ryan Gribble
parent b6e80e8b4b
commit c45175bc7b
@@ -15,7 +15,7 @@ namespace Octokit
Id = id;
}
public PullRequestReviewComment(string url, int id, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl)
public PullRequestReviewComment(string url, int id, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl, int? inReplyToId)
{
Url = url;
Id = id;
@@ -31,6 +31,7 @@ namespace Octokit
UpdatedAt = updatedAt;
HtmlUrl = htmlUrl;
PullRequestUrl = pullRequestUrl;
InReplyToId = inReplyToId;
}
/// <summary>
@@ -105,6 +106,11 @@ namespace Octokit
public ReactionSummary Reactions { get; protected set; }
/// <summary>
/// The Id of the comment this comment replys to.
/// </summary>
public int? InReplyToId { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Id: {0}, Path: {1}, User: {2}, Url: {3}", Id, Path, User.DebuggerDisplay, Url); }