Skip to content

Commit

Permalink
Add Pull Request Comment "In Reply To" Field (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedillonb authored and ryangribble committed Nov 15, 2017
1 parent b6e80e8 commit c45175b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/PullRequestReviewComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,6 +31,7 @@ public PullRequestReviewComment(string url, int id, string diffHunk, string path
UpdatedAt = updatedAt;
HtmlUrl = htmlUrl;
PullRequestUrl = pullRequestUrl;
InReplyToId = inReplyToId;
}

/// <summary>
Expand Down Expand Up @@ -105,6 +106,11 @@ public PullRequestReviewComment(string url, int id, string diffHunk, string path

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); }
Expand Down

0 comments on commit c45175b

Please sign in to comment.