mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
add SubmittedAt field to PullRequestReview (#1964)
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Octokit
|
||||
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;
|
||||
@@ -26,6 +26,7 @@ namespace Octokit
|
||||
PullRequestUrl = pullRequestUrl;
|
||||
State = state;
|
||||
AuthorAssociation = authorAssociation;
|
||||
SubmittedAt = submittedAt;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -73,6 +74,11 @@ namespace Octokit
|
||||
/// </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); }
|
||||
|
||||
Reference in New Issue
Block a user