Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SubmittedAt field to PullRequestReview #1964

Merged
merged 1 commit into from
Jun 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Octokit/Models/Response/PullRequestReview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public PullRequestReview(long id)
Id = id;
}

public PullRequestReview(long id, string nodeId, string commitId, User user, string body, string htmlUrl, string pullRequestUrl, PullRequestReviewState state, AuthorAssociation authorAssociation)
public PullRequestReview(long id, string nodeId, string commitId, User user, string body, string htmlUrl, string pullRequestUrl, PullRequestReviewState state, AuthorAssociation authorAssociation, DateTimeOffset submittedAt)
{
Id = id;
NodeId = nodeId;
Expand All @@ -26,6 +26,7 @@ public PullRequestReview(long id, string nodeId, string commitId, User user, str
PullRequestUrl = pullRequestUrl;
State = state;
AuthorAssociation = authorAssociation;
SubmittedAt = submittedAt;
}

/// <summary>
Expand Down Expand Up @@ -73,6 +74,11 @@ public PullRequestReview(long id, string nodeId, string commitId, User user, str
/// </summary>
public StringEnum<AuthorAssociation> AuthorAssociation { get; protected set; }

/// <summary>
/// The time the review was submitted
/// </summary>
public DateTimeOffset SubmittedAt { get; protected set; }

internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Id: {0}, State: {1}, User: {2}", Id, State.DebuggerDisplay, User.DebuggerDisplay); }
Expand Down