From a2f66508a838effdb1ee88b2878f57aed2a10595 Mon Sep 17 00:00:00 2001 From: Ehsan Mirsaeedi Date: Thu, 18 Jan 2018 04:32:47 -0500 Subject: [PATCH] Add a new column named PullRequestReviewId to PullRequestReviewComment in order to capture pull_request_review_id (#1739) --- 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 985a26f8..5599729d 100644 --- a/Octokit/Models/Response/PullRequestReviewComment.cs +++ b/Octokit/Models/Response/PullRequestReviewComment.cs @@ -15,8 +15,9 @@ 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, 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 @@ namespace Octokit /// 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); }