Files
octokit.net/Octokit/Models/Request/PullRequestReviewCreate.cs
Ryan Gribble 5e89232521 Release v0.25 - She'll be Comin' Round the Mountain (#1656)
* Run `build -Target FormatCode` to fixup whitespace etc

* Fix delete release asset integration test

* Fix repository fork test

* Fix pagination test for PR Review Request

* First cut of release notes

* update release notes

* Update release notes

* include links to contributors

* Add breaking changes/advisories section

* Tidy up formatting

* Tidy up wording
2017-08-23 21:27:15 +10:00

48 lines
1.3 KiB
C#

using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
using System.Collections.Generic;
namespace Octokit
{
/// <summary>
/// Used to create a pull request review
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewCreate : RequestParameters
{
public PullRequestReviewCreate()
{
Comments = new List<DraftPullRequestReviewComment>();
}
/// <summary>
/// The Commit ID which the review is being created for. Default is the latest.
/// </summary>
public string CommitId { get; set; }
/// <summary>
/// The body of the review message
/// </summary>
public string Body { get; set; }
/// <summary>
/// The review event - Approve, Request Changes, Comment or leave blank (null) for Pending.
/// </summary>
public PullRequestReviewEvent? Event { get; set; }
/// <summary>
/// List of comments to include with this review
/// </summary>
public List<DraftPullRequestReviewComment> Comments { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "CommitId: {0}, Body: {1} ", CommitId, Body);
}
}
}
}