using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
using System.Collections.Generic;
namespace Octokit
{
///
/// Used to submit a pending pull request review
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewSubmit : RequestParameters
{
public PullRequestReviewSubmit()
{
}
///
/// The body of the review message
///
public string Body { get; set; }
///
/// The review event - Approve, Request Changes, Comment
///
public PullRequestReviewEvent Event { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Event: {0} ", Event);
}
}
}
public enum PullRequestReviewEvent
{
///
/// The review is approved
///
[Parameter(Value = "APPROVE")]
Approve,
///
/// The review requests changes that must be addressed before merging
///
[Parameter(Value = "REQUEST_CHANGES")]
RequestChanges,
///
/// The review provides comment without explicit approval
///
[Parameter(Value = "COMMENT")]
Comment
}
}