From eeb521211576aa1e664effd3feefd18c09a6a57a Mon Sep 17 00:00:00 2001 From: Dillon Buchanan Date: Sat, 11 Nov 2017 23:56:01 -0500 Subject: [PATCH] Add Pull Request Comment "In Reply To" Field --- Octokit/Models/Response/PullRequestReviewComment.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Octokit/Models/Response/PullRequestReviewComment.cs b/Octokit/Models/Response/PullRequestReviewComment.cs index a969e5b3f1..985a26f849 100644 --- a/Octokit/Models/Response/PullRequestReviewComment.cs +++ b/Octokit/Models/Response/PullRequestReviewComment.cs @@ -15,7 +15,7 @@ public PullRequestReviewComment(int id) 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 @@ public PullRequestReviewComment(string url, int id, string diffHunk, string path UpdatedAt = updatedAt; HtmlUrl = htmlUrl; PullRequestUrl = pullRequestUrl; + InReplyToId = inReplyToId; } /// @@ -105,6 +106,11 @@ public PullRequestReviewComment(string url, int id, string diffHunk, string path public ReactionSummary Reactions { get; protected set; } + /// + /// The Id of the comment this comment replys to. + /// + 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); }