From 469610c53768a275a2b9453e5a26ad558c81cab1 Mon Sep 17 00:00:00 2001 From: Ehsan Mirsaeedi Date: Thu, 11 Jan 2018 13:07:08 -0500 Subject: [PATCH] Add a new column named PullRequestReviewId to PullRequestReviewComment in order to capture pull_request_review_id --- 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 985a26f849..5599729d1e 100644 --- a/Octokit/Models/Response/PullRequestReviewComment.cs +++ b/Octokit/Models/Response/PullRequestReviewComment.cs @@ -15,8 +15,9 @@ 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, int? inReplyToId) + 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,int? pullRequestReviewId) { + PullRequestReviewId = pullRequestReviewId; Url = url; Id = id; DiffHunk = diffHunk; @@ -111,6 +112,11 @@ public PullRequestReviewComment(string url, int id, string diffHunk, string path /// public int? InReplyToId { get; protected set; } + /// + /// The Id of the pull request this comment belongs to. + /// + public int? PullRequestReviewId { 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); }